{% extends "admin/base.html" %} {% load static %} {# The stock base_site.html plus our stylesheet and branding. Extending admin/base.html #} {# keeps the stock `messages` block, so flash messages show (test_admin_flash_messages). #} {% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} {# Theme: cfg-theme.js stores "dark" before Django's theme.js reads the choice (dark by #} {# default, the stock toggle still works). The two stylesheets go at the end of , #} {# after the page stylesheets (forms.css, changelists.css, login.css, widget media) and #} {# responsive.css, so they win at equal specificity without !important. #} {% block dark-mode-vars %} {{ block.super }}{% endblock %} {% block responsive %}{{ block.super }} {% endblock %} {% block branding %}
{% if cfg_site_symbol %}{% endif %}{{ site_header|default:_('Django administration') }} {% if cfg_site_subheader %}{{ cfg_site_subheader }}{% endif %} {% if cfg_environment %}{{ cfg_environment.label }}{% endif %}
{% if user.is_anonymous %} {% include "admin/color_theme_toggle.html" %} {% endif %} {% endblock %} {% block userlinks %} {% for item in cfg_site_dropdown %}{{ item.title }} / {% endfor %}{{ block.super }} {% endblock %} {% block nav-global %}{% endblock %}