summaryrefslogtreecommitdiffstats
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2015-11-18 22:32:31 +0100
committerGibheer <gibheer@gmail.com>2015-11-18 22:32:31 +0100
commit56006da34b0e580e1585439b1ee603f8cbe36a48 (patch)
tree8152e7da613bd9fe24807da51f352bd0b97d99e3 /modules/middleware/context.go
parentefea642d6cf419c9587d44b95ff2bc04e89f7bfe (diff)
downloadgitea-56006da34b0e580e1585439b1ee603f8cbe36a48.tar.gz
gitea-56006da34b0e580e1585439b1ee603f8cbe36a48.zip
fix #1957 - disable version display
This allows the admin to disable the version information about gogs and go in use in the footer.
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 3910a20521..4839ccf99e 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -245,6 +245,7 @@ func Contexter() macaron.Handler {
ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton
ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding
+ ctx.Data["ShowFooterVersion"] = setting.ShowFooterVersion
c.Map(ctx)
}