summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/head.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 47c0d6b473..b6afe94bb4 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -6,7 +6,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
<link rel="manifest" href="{{AppSubUrl}}/manifest.json">
-
+
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
@@ -147,7 +147,11 @@
<meta property="og:url" content="{{AppUrl}}" />
<meta property="og:description" content="{{MetaDescription}}">
{{end}}
-{{if ne DefaultTheme "gitea"}}
+{{if .IsSigned }}
+ {{ if ne .SignedUser.Theme "gitea" }}
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/theme-{{.SignedUser.Theme}}.css">
+ {{end}}
+{{else if ne DefaultTheme "gitea"}}
<link rel="stylesheet" href="{{AppSubUrl}}/css/theme-{{DefaultTheme}}.css">
{{end}}
{{template "custom/header" .}}