From fdf3b418f985898abc53969052a0980358cd2072 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Thu, 4 May 2017 17:42:11 +0200 Subject: [PATCH] Removed theme active check in templates --- .../templates/admin/base_site.html | 30 +++++-------------- admin_interface/templates/admin/filter.html | 12 +++----- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/admin_interface/templates/admin/base_site.html b/admin_interface/templates/admin/base_site.html index 4126cf5..1294d16 100644 --- a/admin_interface/templates/admin/base_site.html +++ b/admin_interface/templates/admin/base_site.html @@ -10,8 +10,6 @@ {% get_admin_interface_theme as theme %} {% endblock %} @@ -550,15 +539,11 @@ {% block branding %} {% get_admin_interface_theme as theme %}

- {% if theme.active %} - {% if theme.logo_visible and theme.logo %} - - {% endif %} - {% if theme.title_visible %} - {% if theme.title %}{% trans theme.title %}{% else %}{% trans 'Django administration' %}{% endif %} - {% endif %} - {% else %} - {% trans 'Django administration' %} + {% if theme.logo_visible and theme.logo %} + + {% endif %} + {% if theme.title_visible %} + {% if theme.title %}{% trans theme.title %}{% else %}{% trans 'Django administration' %}{% endif %} {% endif %}

{% endblock %} @@ -566,9 +551,8 @@ {% block bodyclass %}admin-interface flat-theme{% endblock %} {% block blockbots %} - {{ block.super }} - - +{{ block.super }} + {% endblock %} {% block sidebar %} diff --git a/admin_interface/templates/admin/filter.html b/admin_interface/templates/admin/filter.html index 61efc4c..1b8e5b4 100644 --- a/admin_interface/templates/admin/filter.html +++ b/admin_interface/templates/admin/filter.html @@ -5,15 +5,11 @@ {% if theme.list_filter_dropdown %} {% include "admin_interface/dropdown_filter.html" %} - + {% else %} - - {% comment %} - - Use the default list filter template -> https://github.com/django/django/blob/master/django/contrib/admin/templates/admin/filter.html - - {% endcomment %} - + + {# Use the default list filter template -> https://github.com/django/django/blob/master/django/contrib/admin/templates/admin/filter.html #} +

{% blocktrans with filter_title=title %} By {{ filter_title }} {% endblocktrans %}