Browse Source

minor fix for #1992

Unknwon 9 years ago
parent
commit
4325b01a58
2 changed files with 2 additions and 2 deletions
  1. 0 0
      modules/bindata/bindata.go
  2. 2 2
      templates/base/footer.tmpl

File diff suppressed because it is too large
+ 0 - 0
modules/bindata/bindata.go


+ 2 - 2
templates/base/footer.tmpl

@@ -2,7 +2,7 @@
 	<footer>
 		<div class="ui container">
 			<div class="ui left">
-				© 2015 Gogs {{ if .ShowFooterVersion }}{{.i18n.Tr "version"}}: {{AppVer}}{{ end }} {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>
+				© 2015 Gogs {{if (or .ShowFooterVersion .PageIsAdmin)}}{{.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>
-				{{ if .ShowFooterVersion }}<span class="version">{{GoVer}}</span>{{ end }}
+				{{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}
 			</div>
 		</div>
 	</footer>

Some files were not shown because too many files changed in this diff