summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2021-02-19 23:06:56 +0000
committerGitHub <noreply@github.com>2021-02-20 00:06:56 +0100
commit91424fff3def09970c71c5725643daa4c5b141de (patch)
tree86632dac4bf8f99cffaec8c0b533deae5c1e7d07 /templates/base
parentaa4f9180e4932a9813e898bf3bd9ac91924eeb03 (diff)
downloadgitea-91424fff3def09970c71c5725643daa4c5b141de.tar.gz
gitea-91424fff3def09970c71c5725643daa4c5b141de.zip
stopwatch notif: check if timetracking is enabled (#14750)
fixes #14435
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/head.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 1dcaea8560..2feaf1dda4 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -42,6 +42,7 @@
MaxTimeout: {{NotificationSettings.MaxTimeout}},
EventSourceUpdateTime: {{NotificationSettings.EventSourceUpdateTime}},
},
+ EnableTimetracking: {{if EnableTimetracking}}true{{else}}false{{end}},
PageIsProjects: {{if .PageIsProjects }}true{{else}}false{{end}},
{{if .RequireTribute}}
tributeValues: Array.from(new Map([