{# Top-bar project switcher (spec 161). Driven by the ``project_nav_fn()`` Jinja global so it is fresh on every render and independent of whatever ``config`` a given route passes. Pure HTML
dropdown - no JS dependency. Switch / add / delete post to /projects/*. #} {% set _nav = project_nav_fn() %} {% if _nav %}
GCP Project {{ _nav.active.gcp_project_id }}

Projects

{# Registered projects - switch (whole row) + delete (trailing ✕) #}
    {% for p in _nav.projects %}
  • {% if _nav.projects | length > 1 %}
    {% endif %}
  • {% endfor %}
{# Add a new project #}

Add project

{% else %} {# First-run / no config: fall back to the static label the strip used before. #} GCP Project {{ config.gcp_project_id if config is defined and config else "-" }} {% endif %}