summaryrefslogtreecommitdiffstats
path: root/modules/base/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base/template.go')
-rw-r--r--modules/base/template.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/base/template.go b/modules/base/template.go
index 196b935107..1442bf0e84 100644
--- a/modules/base/template.go
+++ b/modules/base/template.go
@@ -118,6 +118,9 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"CdnMode": func() bool {
return setting.ProdMode && !setting.OfflineMode
},
+ "DisableGravatar": func() bool {
+ return setting.DisableGravatar
+ },
"LoadTimes": func(startTime time.Time) string {
return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms"
},