{% include "_draco_bar.html" %} {# ── Cadre applicatif partagé (issue #16, refonte 0.16.0) ───────── Barre latérale unique pour TOUTES les pages applicatives : desktop = barre fixe repliable en rail d'icônes (état mémorisé), mobile = tiroir hors-canvas ouvert par le burger de la topbar. NE PAS dupliquer ce markup dans les pages. Page active : `active_nav` (déduite du gabarit dans render()). Fil d'Ariane : `owner`+`repo` (board) ou `full_name` (projet). Le wallboard (TV) n'inclut pas ce partiel, volontairement. #} {% set nav_groups = [ ("principal", "Principal", [ ("home", "/", "", "Projets"), ("focus", "/focus", "", "Focus"), ("today", "/today", "", "Aujourd'hui"), ("my", "/my", "", "Mes issues"), ]), ("rituels", "Rituels", [ ("briefing", "/briefing", "", "Briefing"), ("standup", "/standup", "", "Standup"), ("digest", "/digest", "", "Digest"), ]), ("pilotage", "Pilotage", [ ("inflight", "/inflight", "", "En vol"), ("forecast", "/forecast", "", "Prévisions"), ("health", "/health", "", "Santé"), ("rules", "/rules", "", "Règles"), ("activity", "/activity", "", "Activité"), ]), ("outils", "Outils", [ ("search", "/search", "", "Recherche"), ("capture", "/capture", "", "Capture"), ("archives", "/archives", "", "Archives"), ("wall", "/wall", "", "Wallboard"), ]), ] %} {% if is_admin %} {% set nav_groups = nav_groups + [ ("admin", "Administration", [ ("admin", "/admin", "", "Vue d'ensemble"), ("admin_connections", "/admin/connections", "", "Connexions"), ("admin_workspaces", "/admin/workspaces", "", "Espaces"), ("admin_columns", "/admin/columns", "", "Colonnes"), ("admin_settings", "/admin/settings", "", "Paramètres"), ]), ] %} {% endif %} {% set active_group = namespace(key="principal") %} {% for gkey, group, links in nav_groups %} {% for key, href, icon, label in links %} {% if active_nav == key %}{% set active_group.key = gkey %}{% endif %} {% endfor %} {% endfor %}
{% if owner is defined and repo is defined %} {{ owner }} / {{ repo }} {% elif full_name is defined %} {{ full_name }} {% endif %}
{% if repo_info is defined and repo_info and repo_info.html_url %} Gitea ↗ {% endif %}