<%= turbo_stream_from Current.user, :notifications %>
<%= turbo_frame_tag "notifications", src: tray_notifications_path, refresh: "morph", data: { controller: "notifications-tray frame-reloader", notifications_tray_grouped_class: "notification--grouped", action: "turbo:frame-render->notifications-tray#group focus@window->frame-reloader#reload" } %>
<%= link_to notifications_settings_path, class: "btn borderless tray__notification-settings", title: "Notification settings", data: { action: "dialog#close" } do %> <%= icon_tag "settings" %> Settings <% end %>
<%= link_to notifications_path, class: "btn borderless flex-item-grow position-relative overflow-ellipsis", data: { action: "click->dialog#close" } do %> <%= icon_tag "bell" %> See more new items See older items <% end %>
<%= button_to bulk_reading_path(from_tray: true), class: "btn borderless tray__clear-notifications", title: "Mark all notifications as read", data: { action: "dialog#close badge#clear", turbo_frame: "notifications" }, form: { class: "full-width", data: { navigable_list_target: "item" } } do %> <%= icon_tag "check" %> Clear all <% end %>