{% load i18n %} {% load staticfiles %} {% load theme_tags %} {% theme_extends "default.html" %} {% block title %}{% trans 'Dashboard' %}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block top_bar %} {% if request.user.is_authenticated %} {% if request.user.is_superuser %} {% if request.user.impersonated_user and not request.user.impersonated_user.is_superuser %} {% if SITE_GLOBAL_SHOWANCIENTMENU %} {% include "top_menu/user_top.html" %} {% else %} {% include "dashboard/top_nav.html" %} {% endif %} {% else %} {% if SITE_GLOBAL_SHOWANCIENTMENU %} {% include "top_menu/admin_top.html" %} {% else %} {% include "dashboard/top_nav.html" %} {% endif %} {% if request.session.theme %} {% include "themes/theme_top.html" %} {% endif %} {% endif %} {% else %} {% if SITE_GLOBAL_SHOWANCIENTMENU %} {% include "top_menu/user_top.html" %} {% else %} {% include "dashboard/top_nav.html" %} {% endif %} {% endif %} {% endif %} {% endblock %} {% block banner %}{% endblock %} {% block extra_body %} {{ block.super }} {# TODO: Inspect why {{ block.super }} duplicates the imported static files #} {% endblock %}