{# Inline SVG data-URI favicon: matches the sidebar brand mark (filled
dot in --accent) and dodges the auth-middleware 401 a plain
``/favicon.ico`` request would hit. #}
{# Alpine MUST stay last. Deferred scripts execute in document order, and
this Alpine build calls ``Alpine.start()`` as soon as its own script
runs — it registers no ``DOMContentLoaded`` hook — so every global an
``x-data`` / ``x-init`` expression reaches for must already exist by
then. With Alpine second, the dashboard's ``init()`` threw
"Chart is not defined" in a real browser, aborting the component
before ``_connect()`` ran: no charts, and the live-metrics websocket
never opened, so every tile stayed at 0 and the status stuck on
"connecting…". ``setupModal`` / ``closeModal`` (modal-shell.js) are
reached from ``x-init`` the same way. Guarded by
tests/test_admin_asset_order.py. #}
{{ title }}
{% set embedded_uri = request.app.state.embedded.status().uri %}
{% set caps = request.app.state.capabilities %}
{% if embedded_uri and embedded_uri == request.app.state.mongo_uri %}
Embedded SecantusDB
{% else %}
{{ request.app.state.mongo_uri_display }}
{% endif %}
{% if caps.identified %}
{{ caps.label }}
{% endif %}
{% block content %}{% endblock %}