From 3431565f741d6ddd5db8abd6e66fb59917266237 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Wed, 24 Nov 2021 18:44:28 +0100 Subject: [PATCH] Removed theme css field. --- .../migrations/0024_remove_theme_css.py | 19 +++++++++++++++++++ .../templates/admin/base_site.html | 18 ++++++++++++------ 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 admin_interface/migrations/0024_remove_theme_css.py diff --git a/admin_interface/migrations/0024_remove_theme_css.py b/admin_interface/migrations/0024_remove_theme_css.py new file mode 100644 index 00000000..f060803a --- /dev/null +++ b/admin_interface/migrations/0024_remove_theme_css.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('admin_interface', '0023_theme_foldable_apps'), + ] + + operations = [ + migrations.RemoveField( + model_name='theme', + name='css', + ), + ] diff --git a/admin_interface/templates/admin/base_site.html b/admin_interface/templates/admin/base_site.html index 250933e4..8fd27a0b 100644 --- a/admin_interface/templates/admin/base_site.html +++ b/admin_interface/templates/admin/base_site.html @@ -29,11 +29,6 @@ {% include "admin_interface/css/tinymce.css" %} {% include "admin_interface/css/json-widget.css" %} {% include "admin_interface/css/rtl.css" %} - -{% if theme.css %} - {{ theme.css|safe }} -{% endif %} - {% if current_lang == 'fa' %} @@ -55,7 +50,18 @@ {% include "admin_interface/related-modal.html" %} {% endblock %} -{% block bodyclass %}admin-interface flat-theme {% get_admin_interface_theme as theme %}{% if theme.name %}{{ theme.name|slugify }}-theme{% endif %}{% if theme.foldable_apps %} foldable-apps {% endif %}{% if theme.form_submit_sticky %} sticky-submit {% endif %}{% if theme.form_pagination_sticky %} sticky-pagination {% endif %}{% endblock %} +{% block extrahead %} +{{ block.super }} +{% endblock %} + +{% block bodyclass %} +{% get_admin_interface_theme as theme %} +flat-theme admin-interface +{% if theme.name %} {{ theme.name|slugify }}-theme {% endif %} +{% if theme.foldable_apps %} foldable-apps {% endif %} +{% if theme.form_submit_sticky %} sticky-submit {% endif %} +{% if theme.form_pagination_sticky %} sticky-pagination {% endif %} +{% endblock %} {% block branding %} {% get_admin_interface_theme as theme %}