From 8a0315fab74d603813b2a64ab98d5a208a2eb6d1 Mon Sep 17 00:00:00 2001 From: mbcodes Date: Tue, 12 Nov 2024 20:17:15 -0800 Subject: Refs #35875 -- Added dark mode support in additional views. Thanks Thibaud Colas for the review. --- django/contrib/admin/templates/admin/base.html | 1 + django/views/templates/csrf_403.html | 1 + django/views/templates/default_urlconf.html | 43 ++++++++++++++------------ django/views/templates/directory_index.html | 1 + django/views/templates/technical_404.html | 1 + django/views/templates/technical_500.html | 1 + tests/middleware/test_csp.py | 2 +- 7 files changed, 29 insertions(+), 21 deletions(-) diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 16c1808a0c..73121e5114 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -3,6 +3,7 @@ {% block title %}{% endblock %} + {% block dark-mode-vars %} diff --git a/django/views/templates/csrf_403.html b/django/views/templates/csrf_403.html index ee81b04bcc..6a0daad5ee 100644 --- a/django/views/templates/csrf_403.html +++ b/django/views/templates/csrf_403.html @@ -2,6 +2,7 @@ + 403 Forbidden