<% content_for :title, "Notifications" %>

Notifications

<% if @notifications.unread.any? %> <%= link_to "Mark all as read", mark_notifications_as_read_path, method: :post, data: { turbo_method: :post }, class: "btn btn-sm btn-primary" %> <% end %>
<%= paginate @notifications %>
<% @notifications.each do |notification| %> <%= render notification %> <% end %>