forked from forgejo/forgejo
* Add option to hide footer load times * Rename option variable + minor changes
This commit is contained in:
parent
8ee14db51e
commit
bc902b8f74
4 changed files with 13 additions and 6 deletions
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue