mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Refs #33690 -- Updated tutorial for admin dark mode toggle.
This commit is contained in:
parent
8fb0be3500
commit
c65f49d3cb
@ -368,6 +368,9 @@ a section of code like:
|
|||||||
|
|
||||||
{% block branding %}
|
{% block branding %}
|
||||||
<div id="site-name"><a href="{% url 'admin:index' %}">Polls Administration</a></div>
|
<div id="site-name"><a href="{% url 'admin:index' %}">Polls Administration</a></div>
|
||||||
|
{% if user.is_anonymous %}
|
||||||
|
{% include "admin/color_theme_toggle.html" %}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
We use this approach to teach you how to override templates. In an actual
|
We use this approach to teach you how to override templates. In an actual
|
||||||
|
Loading…
Reference in New Issue
Block a user