Skip to content

Commit

Permalink
Removed theme css field.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Nov 24, 2021
1 parent 6a42df6 commit 3431565
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
19 changes: 19 additions & 0 deletions admin_interface/migrations/0024_remove_theme_css.py
Original file line number Diff line number Diff line change
@@ -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',
),
]
18 changes: 12 additions & 6 deletions admin_interface/templates/admin/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

</style>

{% if current_lang == 'fa' %}
Expand All @@ -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 %}
Expand Down

0 comments on commit 3431565

Please sign in to comment.