Fix 2 bare_base/barest_base mistakes re dark mode

* in 1abc30a760 the hardcoding of ="dark" (during development)
  was accidentally checked in; it never should have been.

* in e14b3eaaa6 I mixed up the bare*base templates. It's actually
  bare_base.html that's for 404/500 etc; barest_base is more bare
  visually (it's the box-based layout for login etc), but it doesn't
  need to be so careful not to use variables.

See #40
This commit is contained in:
Klaas van Schelven
2025-07-08 17:04:38 +02:00
parent 27af846de9
commit 9a6d453443
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{% load static tailwind_tags %}<!DOCTYPE html>{# copy of base.html, but without variables (and hence no menu), for use in contextless templates (e.g. 500.html) #}
<html lang="en" data-theme="{% if user.is_authenticated %}{{ user.theme_preference }}{% else %}system{% endif %}">
<html lang="en" data-theme="system">
<head>
<title>{% block title %}Bugsink{% endblock %}</title>
<meta charset="UTF-8">

View File

@@ -1,5 +1,5 @@
{% load static tailwind_tags %}<!DOCTYPE html>{# copy of bare_base.html, but without even a menu bar #}
<html lang="en" data-theme="dark">
<html lang="en" data-theme="{% if user.is_authenticated %}{{ user.theme_preference }}{% else %}system{% endif %}">
<head>
<title>{% block title %}Bugsink{% endblock %}</title>
<meta charset="UTF-8">