{# Routes that don't pass active_page (posts, comments, …) get their label from the endpoint, so every admin tab is named correctly. #} {% set page_label = (active_page or (request.endpoint or 'dashboard').rsplit('.', 1)[-1])|replace('_', ' ')|replace('-', ' ')|title %} {{ page_label }} · {{ site_title }} {# Relative asset base (NOT absolute). Resolves against the PAGE origin, so tinymce assets follow whatever protocol/host loads the page — works behind reverse proxies (https://domain, http://IP, LAN host) without needing X-Forwarded-Proto or per-host edits. An absolute base would be forced to http(s) as Flask sees it internally and break Mixed Content on HTTPS. #} {# js_base has NO trailing slash; callers add the needed '/' themselves so paths stay clean #} {% set js_base = "/static/js" %} {% block head_extra %}{% endblock %}
Dashboard Posts Categories Albums Media Comments{% if pending_comments %}{{ pending_comments }}{% endif %} Pages Links Appearance Analytics Visitors Import/Export Password
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endwith %} {% block admin_content %}{% endblock %}