From 4a58a8ca31cbaa35b41e82da925521afe7946a64 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 27 May 2023 12:06:08 +0200 Subject: Make the 500 page load themes (#24953) The 500 page was not loading theme CSS, so always appeared in light theme. This extracts the stylesheets into a shared template used by all pages. image Small related rant: I think there should only be one `` in all of the templates, but I see it was deliberatly done that the 500 page has its own `` because "it should only depend the minimal template functions", but I disagree because we are missing a lot of things that are in the regular ``. --- templates/base/head.tmpl | 13 +++---------- templates/base/stylesheets.tmpl | 8 ++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 templates/base/stylesheets.tmpl (limited to 'templates/base') diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index d702b9fcef..690cade8d7 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -20,7 +20,6 @@ {{end}} - {{template "base/head_script" .}}