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.

1.1 KB
Raw Blame
<%# locals: (active:, title_action: nil) %>
<%# The management area's header. Title, org subtitle and tab bar all come from
    organisations/shared/_subnav, which is also what the times area renders -
    the two used to be byte-identical partials that had already drifted apart in
    one class (the active marker). Access is checked per page via Pundit.

    Tabs come from NavigationHelper::SETTINGS_TABS - the single source shared
    with the sidebar "Verwaltung" active-state (management_section_active?), so
    the two never drift.

    title_action: a captured block for the one main action of a page, rendered in
    the title row (the AI overview's "Zugang einrichten"). Passed through, not
    placed here: _subnav owns the row, and a caller that rendered a button beside
    the partial would give the page a second left edge. %>
<%= render 'organisations/shared/subnav',
      tabs: organisation_settings_tabs(current_organisation),
      active: active,
      aria_label: t('navigation.management'),
      title: t('navigation.management'),
      title_action: title_action %>