mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-11 15:04:02 +09:00
* Add option to hide footer load times * Rename option variable + minor changes
This commit is contained in:
1 parent
8ee14db51e
commit
bc902b8f74
4 files changed
+13
-6
No files matched your search
@@ -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"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user