{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
{% endblock %}
{% include "_version_badge.html" %}
{# Pages that mount a chip-input opt in via the {% raw %}{{ super() }}{% endraw %} +
{% raw %}{% block extra_scripts %}{% endblock %}{% endraw %}
pattern. Was previously loaded globally here even though only
/admin/corporate-memory actually used it — pure waste on every
other admin/user page (#L85). #}
{% block extra_scripts %}{% endblock %}
{% block scripts %}{% endblock %}
{# Operator-injected scripts (placement=body_end) — for vendors that
explicitly want bottom placement. Admin-only, see
instance.custom_scripts. #}
{% for s in custom_scripts | default([]) if s.placement == 'body_end' %}
{{ s.html | safe }}
{% endfor %}