Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank results visualization notifications #512

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
Loading