diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-02-19 23:06:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 00:06:56 +0100 |
commit | 91424fff3def09970c71c5725643daa4c5b141de (patch) | |
tree | 86632dac4bf8f99cffaec8c0b533deae5c1e7d07 /modules/templates/helper.go | |
parent | aa4f9180e4932a9813e898bf3bd9ac91924eeb03 (diff) | |
download | gitea-91424fff3def09970c71c5725643daa4c5b141de.tar.gz gitea-91424fff3def09970c71c5725643daa4c5b141de.zip |
stopwatch notif: check if timetracking is enabled (#14750)
fixes #14435
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r-- | modules/templates/helper.go | 3 |
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/") |