{% extends "admin/base.html" %} {% comment %} Copyright (C) 2024 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% comment %} Override base_site.html template from django.contrib.admin application to include SWH logo in admin site header. {% endcomment %} {% load static %} {% block title %} {% if subtitle %}{{ subtitle }} |{% endif %} {{ title }} | {{ site_title|default:_("Django site admin") }} {% endblock title %} {% block extrastyle %} {{ block.super }} {% endblock extrastyle %} {% block branding %}
{% if user.is_anonymous %} {% include "admin/color_theme_toggle.html" %} {% endif %} {% endblock branding %} {% block nav-global %} {% endblock nav-global %}