diff options
| author | Adam Johnson <me@adamj.eu> | 2024-01-03 21:17:57 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-01-03 22:18:45 +0100 |
| commit | ef8234aef8f8473cb4fb79aec29e5a9445a32114 (patch) | |
| tree | 5a2926fca424b715d97f713193ae4fa554af93e0 /docs | |
| parent | abb2448f17cfb5403a6eb4fb8a08112f26910a6f (diff) | |
[5.0.x] Refs #33690 -- Updated tutorial for admin dark mode toggle.
Backport of c65f49d3cb8709f2f694f78b4849bc7693e90416 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/intro/tutorial07.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/intro/tutorial07.txt b/docs/intro/tutorial07.txt index f53d0b524c..9cdadbe286 100644 --- a/docs/intro/tutorial07.txt +++ b/docs/intro/tutorial07.txt @@ -368,6 +368,9 @@ a section of code like: {% block branding %} <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 %} We use this approach to teach you how to override templates. In an actual |
