Skip to content

Commit

Permalink
Blank results visualization notifications (#512)
Browse files Browse the repository at this point in the history
Add notifications blank visualization

---------

Co-authored-by: Jan Suchal <[email protected]>
  • Loading branch information
richardlences and jsuchal authored Nov 23, 2024
1 parent f1b3bdf commit c48317b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/components/common/blank_results_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def before_render
tags: "tag-slash",
not_found: "magnifying-glass",
boxes: "inbox-stack",
notifications: "bell-slash"
}

@header = t "blank_results.#{@reason}.header"
Expand Down
4 changes: 4 additions & 0 deletions app/views/notifications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<%= render Turbo::NextPageAreaComponent.new(id: @next_cursor, url: scroll_notifications_path(cursor: @next_cursor, format: :turbo_stream)) %>
<% end %>
</ul>

<% if @notifications.empty? %>
<%= render Common::BlankResultsComponent.new(:notifications) %>
<% end %>
</div>
</div>
</div>
5 changes: 4 additions & 1 deletion config/locales/sk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,7 @@ sk:
description: 'Zatiaľ nie sú vytvorené žiadne schránky.'
not_found:
header: "Žiadne správy"
description: "Zvolenému vyhľadávaniu nevyhovuje žiadna správa, skúste vybrať iný štítok alebo zmeniť vyhľadávací výraz."
description: "Zvolenému vyhľadávaniu nevyhovuje žiadna správa, skúste vybrať iný štítok alebo zmeniť vyhľadávací výraz."
notifications:
header: "Žiadne notifikácie"
description: "Nemáte žiadne notifikácie."

0 comments on commit c48317b

Please sign in to comment.