Skip to content

Commit 3431565

Browse files
committed
Removed theme css field.
1 parent 6a42df6 commit 3431565

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('admin_interface', '0023_theme_foldable_apps'),
12+
]
13+
14+
operations = [
15+
migrations.RemoveField(
16+
model_name='theme',
17+
name='css',
18+
),
19+
]

admin_interface/templates/admin/base_site.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
{% include "admin_interface/css/tinymce.css" %}
3030
{% include "admin_interface/css/json-widget.css" %}
3131
{% include "admin_interface/css/rtl.css" %}
32-
33-
{% if theme.css %}
34-
{{ theme.css|safe }}
35-
{% endif %}
36-
3732
</style>
3833

3934
{% if current_lang == 'fa' %}
@@ -55,7 +50,18 @@
5550
{% include "admin_interface/related-modal.html" %}
5651
{% endblock %}
5752

58-
{% 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 %}
53+
{% block extrahead %}
54+
{{ block.super }}
55+
{% endblock %}
56+
57+
{% block bodyclass %}
58+
{% get_admin_interface_theme as theme %}
59+
flat-theme admin-interface
60+
{% if theme.name %} {{ theme.name|slugify }}-theme {% endif %}
61+
{% if theme.foldable_apps %} foldable-apps {% endif %}
62+
{% if theme.form_submit_sticky %} sticky-submit {% endif %}
63+
{% if theme.form_pagination_sticky %} sticky-pagination {% endif %}
64+
{% endblock %}
5965

6066
{% block branding %}
6167
{% get_admin_interface_theme as theme %}

0 commit comments

Comments
 (0)