summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-18 17:15:14 -0500
committerUnknwon <u@gogs.io>2015-11-18 17:15:14 -0500
commit052519a7d7ad5f52ef57b1339ac41363034bcd39 (patch)
tree1aa2ca7797de89faae2c8f7021fd57d10c3236f7 /templates
parentefea642d6cf419c9587d44b95ff2bc04e89f7bfe (diff)
parente347736c9eadc458a330359c361f19c4193e5f4b (diff)
downloadgitea-052519a7d7ad5f52ef57b1339ac41363034bcd39.tar.gz
gitea-052519a7d7ad5f52ef57b1339ac41363034bcd39.zip
Merge pull request #1992 from Gibheer/disable_version_display
fix #1957 - disable version display
Diffstat (limited to 'templates')
-rw-r--r--templates/base/footer.tmpl6
-rw-r--r--templates/ng/base/footer.tmpl6
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 686b82f24d..f3eb250618 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -2,7 +2,7 @@
<footer>
<div class="ui container">
<div class="ui left">
- © 2015 Gogs {{.i18n.Tr "version"}}: {{AppVer}} {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>
+ © 2015 Gogs {{ if .ShowFooterVersion }}{{.i18n.Tr "version"}}: {{AppVer}}{{ end }} {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>
</div>
<div class="ui right links">
{{if .ShowFooterBranding}}
@@ -20,7 +20,7 @@
</div>
</div>
<a target="_blank" href="http://gogs.io">{{.i18n.Tr "website"}}</a>
- <span class="version">{{GoVer}}</span>
+ {{ if .ShowFooterVersion }}<span class="version">{{GoVer}}</span>{{ end }}
</div>
</div>
</footer>
@@ -46,4 +46,4 @@
<script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script>
<script src="{{AppSubUrl}}/js/libs/clipboard-1.5.3.min.js"></script>
-</html> \ No newline at end of file
+</html>
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>