Browse Source

fix wrong theme class when logged out if default theme is changed (#22408)

If you don't use the `auto` theme as the default, the `<html>` tag has
`theme-auto` as it's class when users are logged out. This PR changes it
to use the correct theme class for the default theme when logged out.
tags/v1.19.0-rc0
crystal 1 year ago
parent
commit
9ffaf19d89
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      templates/base/head.tmpl

+ 1
- 1
templates/base/head.tmpl View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{.locale.Lang}}" class="theme-{{if .SignedUser.Theme}}{{.SignedUser.Theme}}{{else}}auto{{end}}">
<html lang="{{.locale.Lang}}" class="theme-{{if .SignedUser.Theme}}{{.SignedUser.Theme}}{{else}}{{DefaultTheme}}{{end}}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

Loading…
Cancel
Save