{% extends "admin/base.html" %} {% comment %} SPDX-License-Identifier: GPL-3.0-or-later {% endcomment %} {% load i18n staticfiles %} {% block title %}{{ title }} | {{ request.site.name }}{% endblock %} {% block branding %} {{ request.site.name }} {% endblock %} {% block usertools %}
{% block welcome-msg %} {% if user.is_authenticated %} {% trans 'Welcome,' %} {% firstof user.get_short_name user.get_username %}. {% endif %} {% endblock %} {% block userlinks %} {% if available_apps %} {# When in admin site, list all admin pages and documentation #} {% trans 'Explore database' %} Recherche ... {% for app in available_apps %} {% for model in app.models %} {% if model.admin_url %} {{ model.name }} {% endif %} {% endfor %} {% endfor %} Statistiques {% if user.is_active and user.is_superuser %} {% url 'django-admindocs-docroot' as docsroot %} {% if docsroot %} {% trans 'Documentation' %} {% endif %} {% endif %} / {% else %} {# When not in admin site, but user is staff then add a link #} {% trans 'Explore database' %} / {% endif %} {% if user.is_authenticated %} {% trans 'Log out' %} {% else %} {% trans 'Log in' %} {% endif %} {% endblock %}
{% endblock %} {% block extrastyle %} {# Favicon #} {% endblock %} {% block footer %} {% if not is_popup %} {% endif %} {# Bind CTRL+S to Save button in forms #} {% block extrajavascript %}{% endblock %} {% endblock %}