{# templates/base.html · v2.3 #} {% block title %}{{ app_name }}{% endblock %} {# ─────────── Vendor CSS ─────────── #} {# ─────────── Projekt-Bundle ─────────── #} {# ─────────── PDF-Bookmarks-Styles (Viewer) ─────────── #} {# ─────────── Page-spezifische Styles (SCSS->CSS) ─────────── #} {% block extra_css %}{% endblock %} {# --------------------------------------------------------------------------- # Body-Klassen & -Attribute • page-home → Navbar wird vollständig verborgen (CSS in home_overrides.css) • data-page → Key für Accent-Sync / View-Transitions • body_class-Block erlaubt individuelle Erweiterungen --------------------------------------------------------------------------- #} {# ═════════════ NAVBAR ═════════════ #} {% include "partials/_navbar.html" %} {% if active_tab != 'home' %}
{% if current_user.is_authenticated %} {{ current_user.email }} {% if current_user.is_verified %} Bestätigt {% else %} Bestätigen {% endif %}
{% else %} Anmelden Konto {% endif %}
{% endif %} {# ═════════════ CONTENT ═════════════ # • #pageContent wird von page_transitions.js / Turbo animiert --------------------------------------------------------------------------- #}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %} {% endfor %}
{% endif %} {% endwith %} {% block content %}{% endblock %}
{# ── optionales Fade-Overlay für manuelle Transitions ── #}
{# ═════════════ Vendor JS ═════════════ #} {# ─────────── Projekt-JS (global) ─────────── #} {# Fallback: page-home setzen, falls keine Navbar gerendert #} {# ═════════════ Page-spezifische Scripts ═════════════ #} {% block extra_js %}{% endblock %}