aboutsummaryrefslogtreecommitdiff
path: root/internal/template
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-29 16:29:17 +0800
committerGitHub <noreply@github.com>2020-02-29 16:29:17 +0800
commit17ae0ed3eef54d96bd179ff7fec0540cf3024748 (patch)
treea9111282717da16feb83baf352ffb2ee5178ca0d /internal/template
parentd59b0f6ff7ee24d94eaa5ad68173405faea6a81c (diff)
conf: overhaul settings (#5953)
* Overhaul cache settings * Overhaul HTTP settings * conf: overhaul more settings * log: make LGTM happy * travis: upload report to Codecov * Add codecov.yml
Diffstat (limited to 'internal/template')
-rw-r--r--internal/template/template.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/template/template.go b/internal/template/template.go
index 21c2c549..1023d7b3 100644
--- a/internal/template/template.go
+++ b/internal/template/template.go
@@ -58,10 +58,10 @@ func FuncMap() []template.FuncMap {
return conf.Server.Domain
},
"DisableGravatar": func() bool {
- return conf.DisableGravatar
+ return conf.Picture.DisableGravatar
},
"ShowFooterTemplateLoadTime": func() bool {
- return conf.ShowFooterTemplateLoadTime
+ return conf.Other.ShowFooterTemplateLoadTime
},
"LoadTimes": func(startTime time.Time) string {
return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms"