{% set pfad = request.url.path %} {# GUI-Umbau 10.09.2026: root-Accounts (is_superuser) sehen eine andere linke Hauptnavigation als Kundenkonten - die generischen Kunden- Self-Service-Bereiche (Flotte/Organisation/Installationsmedium) braucht root nicht (eigene Test-Org "Liebherr" ausgenommen, dafür reicht der Admin-Bereich), stattdessen liegen die vier früheren "Admin"-Unterseiten jetzt direkt als eigene Punkte hier. #} {% set aktiver_bereich = "dashboard" if pfad.startswith("/dashboard") else "flotte" if pfad.startswith("/geraete") else "organisation" if (pfad.startswith("/organisation") or pfad.startswith("/struktur") or pfad.startswith("/gruppen")) else "workspace" if (pfad.startswith("/workspace") or pfad.startswith("/webapps")) else "installationsmedium" if pfad.startswith("/installationsmedium") else "admin_dashboard" if pfad.startswith("/admin/dashboard") else "admin_kunden" if pfad.startswith("/admin/kunden") else "admin_workspaces" if pfad.startswith("/admin/workspaces") else "admin_geraete" if pfad.startswith("/admin/geraete") else "admin_flows" if pfad.startswith("/admin/flows") else "admin_accounts" if pfad.startswith("/admin/accounts") else "" %} {% set aktive_unterseite = "konten" if pfad.startswith("/organisation/konten") else "ressourcen" if pfad.startswith("/organisation/ressourcen") else "organisation" if pfad.startswith("/organisation") else "struktur" if pfad.startswith("/struktur") else "gruppen" if pfad.startswith("/gruppen") else "kontingent" if pfad.startswith("/installationsmedium/kontingent") else "erstellen" if pfad.startswith("/installationsmedium/erstellen") else "medien" if pfad.startswith("/installationsmedium") else "" %}
{% if user %}
{% if aktiver_bereich == "organisation" %} {% endif %} {% if aktiver_bereich == "installationsmedium" %} {% endif %} {% else %}
{% endif %} {% block content %}{% endblock %} {% if user %}
{% else %} {% endif %}