<% @page_title = "Notifications" %> <% @hide_footer_frames = true %> <% content_for :header do %> <% end %>
<% if @unread.any? %>

New for you

<%= button_to "Mark all as read", read_all_notifications_path, class: "btn txt-small" %>
<%= render partial: "notifications/notification", collection: @unread, cached: true %> <% else %>
Nothing new for you.
<% end %>

Previously seen

<%= render partial: "notifications/notification", collection: @page.records, cached: true %>
<%= notifications_next_page_link(@page) if @page.records.any? %>