{% extends "base.html" %} {% from "_macros.html" import icon, brandlink %} {# Shared chrome for the admin area: its own narrow nav rather than the chat sidebar, so administration is visibly a different place from chatting. #} {% block head %} {% endblock %} {% block body_attrs %} data-authenticated="true"{% endblock %} {% block body %} {% if user and user.is_admin and (user.settings_json or {}).get("last_seen_version") not in (none, version) %} {# After an update, once per administrator: what changed is on the Updates page, and opening it clears this. #}
{{ icon("sparkle", "icon--sm") }} {{ t("Updated to %(version)s.", version=version) }} {{ t("What changed") }}
{% endif %}
{# `id="sidebar"` and the drawer's furniture, because below the phone breakpoint `.sidebar` is a fixed overlay that starts closed -- and this one had neither an id for `data-toggle="#sidebar"` to find nor any control to open it. The administration area was reachable on a phone and then unnavigable once you arrived. #} {% include "partials/_sidebar_scrim.html" %}
{% include "partials/_sidebar_toggle.html" %}

{% block heading %}{{ t("Administration") }}{% endblock %}

{# `data-in-place-root`: a form in here is saved without leaving the page (web/in_place.py, js/inplace.js). #}
{% block admin_content %}{% endblock %}
{% endblock %}