Skip to content

Commit 721f555

Browse files
Merge pull request #2307 from IFRCGo/fix/admin-dark-mode-issue
Admin dark-mode issue fix
2 parents 2b3f32f + ea68e4e commit 721f555

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/templates/admin/base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<head>
55
<title>{% block title %}{% endblock %}</title>
66
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" />
7+
{% block dark-mode-vars %}
8+
<link rel="stylesheet" href="{% static "admin/css/dark_mode.css" %}">
9+
<script src="{% static "admin/js/theme.js" %}" defer></script>
10+
{% endblock %}
711
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
812
{% block extrahead %}{% endblock %}
913
{% block responsive %}

0 commit comments

Comments
 (0)