Skip to content

Commit a052e09

Browse files
author
Akshara Hegde
committed
fix - Hide django default dark mode switcher which is interfering with JET sidebar
1 parent 0ef50f6 commit a052e09

File tree

18 files changed

+43
-37
lines changed

18 files changed

+43
-37
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
/.idea
66
/docs/_build/
77
/node_modules/
8-
.vscode/
8+
.vscode/
9+
.build

jet/static/jet/css/_header.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,3 +276,7 @@
276276
display: block;
277277
}
278278
}
279+
280+
button.theme-toggle {
281+
display: none;
282+
}

jet/static/jet/css/themes/default/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/default/base.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/green/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/green/base.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/light-blue/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/light-blue/base.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/light-gray/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/light-gray/base.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/light-green/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/light-green/base.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/light-violet/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/light-violet/base.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/primary/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/static/jet/css/themes/primary/base.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jet/templates/admin/base.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,29 +54,29 @@
5454
{% block branding %}{% endblock %}
5555
</div>
5656
{% block usertools %}
57-
{% if user.is_active and user.is_staff or has_permission %}
58-
<div id="user-tools">
59-
{% block welcome-msg %}
60-
{% trans 'Welcome,' %}
61-
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
62-
{% endblock %}
63-
{% block userlinks %}
64-
{% if site_url %}
65-
<a href="{{ site_url }}">{% trans 'View site' %}</a> /
66-
{% endif %}
67-
{% if user.is_active and user.is_staff %}
68-
{% url 'django-admindocs-docroot' as docsroot %}
69-
{% if docsroot %}
70-
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
57+
{% if user.is_active and user.is_staff or has_permission %}
58+
<div id="user-tools">
59+
{% block welcome-msg %}
60+
{% trans 'Welcome,' %}
61+
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
62+
{% endblock %}
63+
{% block userlinks %}
64+
{% if site_url %}
65+
<a href="{{ site_url }}">{% trans 'View site' %}</a> /
7166
{% endif %}
72-
{% endif %}
73-
{% if user.has_usable_password %}
74-
<a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
75-
{% endif %}
76-
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
77-
{% endblock %}
78-
</div>
79-
{% endif %}
67+
{% if user.is_active and user.is_staff %}
68+
{% url 'django-admindocs-docroot' as docsroot %}
69+
{% if docsroot %}
70+
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
71+
{% endif %}
72+
{% endif %}
73+
{% if user.has_usable_password %}
74+
<a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
75+
{% endif %}
76+
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
77+
{% endblock %}
78+
</div>
79+
{% endif %}
8080
{% endblock %}
8181
</div>
8282
<!-- END Header -->

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
django==4.1.7
2+
# django==4.2.1
23
six

0 commit comments

Comments
 (0)