Feature #3492: Add option to hide footer load times (#3562)

* Add option to hide footer load times

* Rename option variable + minor changes
This commit is contained in:
Thibault Meyer authored and 无闻 committed 2016-09-01 01:01:32 -04:00
1 parent 8ee14db51e
commit bc902b8f74
4 files changed
+13 -6

No files matched your search

+3
View File
@@ -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"
},