barest_base: don't assume user is set.

its purpose is to "not break" for e.g. 404/500, so I want as little logic in
there as possible.
This commit is contained in:
Klaas van Schelven
2025-07-07 11:36:36 +02:00
parent 8178861422
commit e14b3eaaa6
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

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="{% 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">