Aug 5 - Update (new design) 2

This commit is contained in:
2026-08-05 19:30:57 -04:00
parent eba535487e
commit 9f8cbe1675
4 changed files with 704 additions and 3 deletions
+6 -2
View File
@@ -183,12 +183,16 @@ def create_app(config_name='default'):
"""Give base.html the shell to extend."""
from app.utils.time_utils import now_eastern
theme = getattr(g, 'jqc_theme', 'classic')
_now = now_eastern()
return {
'jqc_theme': theme,
'jqc_layout': 'layouts/modern.html' if theme == 'modern'
else 'layouts/classic.html',
# Long-form date shown in the modern dashboard header.
'now_display': now_eastern().strftime('%A, %B %-d, %Y'),
# Long-form date shown in the modern dashboard header. The day is
# interpolated rather than formatted with '%-d' — that flag is a
# glibc extension and raises ValueError on Windows, which would
# 500 every page (this context processor runs on both themes).
'now_display': f'{_now.strftime("%A, %B")} {_now.day}, {_now.year}',
}
# ── Inject unread notification count into every template context ──────