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:, badge: nil, title_action: nil, right_content: nil) %>
<%# The times area's header: the one time list and the billings behind it.
    Structure, edge and active marker come from organisations/shared/_subnav,
    the same file the management area renders.

    ⚠️ The title box travels THROUGH here rather than being rendered beside it
    by the caller. That is not tidiness: while the caller owned the box and this
    file only the bar, the two sat on different left edges (see the note in
    _subnav).

    A tab the reader may not open is not rendered (NavigationHelper::TIMES_TABS
    carries the Pundit question): a tab that ends in an error message is a
    promise without cover. With one tab left there is nothing to switch, so
    _subnav renders no bar at all. %>
<%= render 'organisations/shared/subnav',
      tabs: times_area_tabs(current_organisation),
      active: active,
      aria_label: t('navigation.times_tabs.label'),
      title: title,
      badge: badge,
      title_action: title_action,
      right_content: right_content %>