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.4 KB
Raw Blame
<%# Header of the AI area (doc/ki_bereich_navigation_plan.md S2, decision N1).

    Replaces the eight-tab settings bar on every page of the area. N1 rejected both a
    sub-sidebar and a second tab row: the area is set up once and rarely revisited, and
    between its pages nobody jumps — permanent navigation chrome would cost space on
    every visit for a benefit that materialises on almost none.

    So what a sub-page gets is a way BACK, not a way sideways. The hub is the one place
    that lists what exists. The way back is named after where it leads ("‹ KI"), not
    after the act of going back: whoever rarely switches between these pages does not
    need the short way, but the sure one.

    Locals:
      title: the page's own name ("Zugang", "Indexierung", …) %>
<% org = current_organisation %>
<%= render NeoTitleBoxComponent.new(title: t('settings.ai'), variant: :organisation) %>

<div class="mb-8 flex flex-wrap items-center gap-x-3 gap-y-2 border-b border-cream-300 pb-3">
  <%= link_to organisation_ai_overview_path(org),
        class: 'inline-flex items-center text-sm font-medium text-cream-600 transition-colors hover:text-cream-900' do %>
    <span class="mr-1.5" aria-hidden="true">‹</span><%= t('settings.ai') %>
  <% end %>
  <span class="text-cream-400" aria-hidden="true">/</span>
  <span class="text-sm font-bold text-cream-900" aria-current="page"><%= title %></span>
</div>