Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

834 B
Raw Blame
<%# The Inbox item of the sidebar: one <li><a> with the bell, and inside it the
    permanent count frame from notifications/_nav_count. The <a> with its active
    state sits DELIBERATELY OUTSIDE the frame, so it is rendered fresh on every
    page view while the frame survives Turbo visits.
    Never point a turbo_stream.replace on nav_notifications_count at THIS
    partial: its root is the whole item, and replace would nest a second item
    (second bell, second link) inside the first one on every update. %>
<%= render 'common/navigation_item',
          name: render('notifications/nav_count', unread_count: unread_count),
          path: organisation_notifications_path(organisation_id: organisation.id),
          icon: 'bi bi-bell',
          active: controller_name == 'notifications',
          turbo_frame: '_top' %>