summaryrefslogtreecommitdiffstats
path: root/modules/templates/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r--modules/templates/helper.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 00ccd49cb4..4b9b648b2f 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -174,6 +174,9 @@ func NewFuncMap() []template.FuncMap {
"UseServiceWorker": func() bool {
return setting.UI.UseServiceWorker
},
+ "EnableTimetracking": func() bool {
+ return setting.Service.EnableTimetracking
+ },
"FilenameIsImage": func(filename string) bool {
mimeType := mime.TypeByExtension(filepath.Ext(filename))
return strings.HasPrefix(mimeType, "image/")