footer_content: integrate tmpl changes d55a0b7238

this commit is a little overdue as these changes should have been
introduced earlier. fortunately, the absence of this didn't cause any
serious issues, only some footer labels have been missing text.
fixed now.

follow-up of: c5609d7f74

refs:
    d55a0b7238
    d55a0b7238
    https://github.com/go-gitea/gitea/pull/20153
This commit is contained in:
surtur 2022-07-19 12:07:13 +02:00
parent 3ad70c0ad5
commit 553f8a62ee
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -1,9 +1,9 @@
<footer>
<div class="ui container">
<div class="ui left">
{{.i18n.Tr "powered_by" "Gitea"}}
{{.locale.Tr "powered_by" "Gitea"}}
{{if (or .ShowFooterVersion .PageIsAdmin)}}
{{.i18n.Tr "version"}}:
{{.locale.Tr "version"}}:
{{if .IsAdmin}}
<a href="/admin/config">{{AppVer}}</a>
{{else}}
@ -11,9 +11,9 @@
{{end}}
{{end}}
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
{{.i18n.Tr "template"}}
{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>
{{.locale.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
{{.locale.Tr "template"}}
{{if .TemplateName}}{{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>
{{end}}
</div>
<div class="ui right links">
@ -25,11 +25,11 @@
<div class="text">{{.i18n.LangName}}</div>
<div class="menu">
{{range .AllLangs}}
<a lang="{{.Lang}}" data-url="/?lang={{.Lang}}" class="item {{if eq $.i18n.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
<a lang="{{.Lang}}" data-url="/?lang={{.Lang}}" class="item {{if eq $.locale.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
{{end}}
</div>
</div>
<a href="/assets/js/licenses.txt">{{.i18n.Tr "licenses"}}</a>
<a href="/assets/js/licenses.txt">{{.locale.Tr "licenses"}}</a>
{{if .EnableSwagger}}<a href="/api/swagger">API</a>{{end}}
{{template "custom/extra_links_footer" .}}
{{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}