From a6ae4230f63fd27c791705a0a1910897ef54c344 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Thu, 11 May 2017 16:54:43 +0200 Subject: [PATCH] Improved scripts and styles order --- .../templates/admin/base_site.html | 34 ++++++------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/admin_interface/templates/admin/base_site.html b/admin_interface/templates/admin/base_site.html index 05cc19c..77f3e43 100644 --- a/admin_interface/templates/admin/base_site.html +++ b/admin_interface/templates/admin/base_site.html @@ -597,15 +597,21 @@ {% endblock %} -{% block extrahead %} +{% block blockbots %} {{ block.super }} - +{# https://github.com/elky/django-flat-responsive#important-note #} + + {% get_admin_interface_theme as theme %} {% if theme.related_modal_active %} - + + + {% endif %} {% endblock %} +{% block bodyclass %}admin-interface flat-theme {% get_admin_interface_theme as theme %}{% if theme.name %}{{ theme.name|slugify }}-theme{% endif %}{% endblock %} + {% block branding %} {% get_admin_interface_theme as theme %}

@@ -616,24 +622,4 @@ {% if theme.title %}{% trans theme.title %}{% else %}{% trans 'Django administration' %}{% endif %} {% endif %}

-{% endblock %} - -{% block bodyclass %}admin-interface flat-theme{% endblock %} - -{% block blockbots %} -{{ block.super }} - -{% endblock %} - -{% block sidebar %} -{% endblock %} - -{% block footer %} -{{ block.super }} -{% get_admin_interface_theme as theme %} -{% if theme.related_modal_active %} - - -{% endif %} -{% endblock %} - +{% endblock %} \ No newline at end of file