{# theme_modern.css loads LAST so it wins over theme.css tokens #} {# MT: per-tenant branding overrides, mirrored from layouts/classic.html. Loaded AFTER theme_modern.css so a tenant's colours win over the modern palette; the modern layout/structure is unaffected. #} {% if tenant_branding %} {% endif %} {% block extra_css %}{% endblock %} {% if current_user.is_authenticated %}
{% if tenant_branding and tenant_branding.logo_url %} {% else %} JQC {% endif %} {{ tenant_branding.display_name if tenant_branding else 'Janitorial QC' }} {# Scoped to inspection ID only — the placeholder says so explicitly so nobody types a facility name and assumes the search is broken. #}
{% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %} {# MT: the billing banner is layout chrome in layouts/classic.html and must render here too — a user on the modern design must not miss a suspension or dunning notice. _quota_warning.html is deliberately NOT included here: it is a per-form include (user_form, issue form, facility form, inspection start), not layout chrome. Including it globally would render it twice on exactly those pages. #} {% include 'billing/_billing_banner.html' %} {% block content %}{% endblock %}
{% block extra_js %}{% endblock %} {% if current_user.is_authenticated %} {% endif %}