summaryrefslogtreecommitdiffstats
path: root/templates/ng
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 /templates/ng
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 'templates/ng')
-rw-r--r--templates/ng/base/footer.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/ng/base/footer.tmpl b/templates/ng/base/footer.tmpl
index bafcc46ef7..695a145f72 100644
--- a/templates/ng/base/footer.tmpl
+++ b/templates/ng/base/footer.tmpl
@@ -1,7 +1,7 @@
</div>
<footer id="footer">
<div class="container clear">
- <p class="left" id="footer-rights">© 2015 Gogs · {{.i18n.Tr "version"}}: {{AppVer}} · {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> ·
+ <p class="left" id="footer-rights">© 2015 Gogs · {{ if .ShowFooterVersion }}{{.i18n.Tr "version"}}: {{AppVer}}{{ end }} · {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> ·
{{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong></p>
<div class="right" id="footer-links">
@@ -21,9 +21,9 @@
</div>
</div>
<a target="_blank" href="http://gogs.io">{{.i18n.Tr "website"}}</a>
- <span class="version">{{GoVer}}</span>
+ {{ if .ShowVersionFooter }}<span class="version">{{GoVer}}</span>{{ end }}
</div>
</div>
</footer>
</body>
-</html> \ No newline at end of file
+</html>