aboutsummaryrefslogtreecommitdiffstats
path: root/modules/template
diff options
context:
space:
mode:
authorThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-09-01 07:01:32 +0200
committer无闻 <u@gogs.io>2016-09-01 01:01:32 -0400
commitbc902b8f745efe91e9dce5e4c5f5f2d5d760fbfb (patch)
treecdca4d2dc95875284472af47d705fb85d16176ef /modules/template
parent8ee14db51ebc92728e1edba4545c7d4ea4b21c65 (diff)
downloadgitea-bc902b8f745efe91e9dce5e4c5f5f2d5d760fbfb.tar.gz
gitea-bc902b8f745efe91e9dce5e4c5f5f2d5d760fbfb.zip
Feature #3492: Add option to hide footer load times (#3562)
* Add option to hide footer load times * Rename option variable + minor changes
Diffstat (limited to 'modules/template')
-rw-r--r--modules/template/template.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/template/template.go b/modules/template/template.go
index 707697df34..3a6eb042bb 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -52,6 +52,9 @@ func NewFuncMap() []template.FuncMap {
"DisableGravatar": func() bool {
return setting.DisableGravatar
},
+ "ShowFooterTemplateLoadTime": func() bool {
+ return setting.ShowFooterTemplateLoadTime
+ },
"LoadTimes": func(startTime time.Time) string {
return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms"
},