surtur
553f8a62ee
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
39 lines
1.4 KiB
Go HTML Template
39 lines
1.4 KiB
Go HTML Template
<footer>
|
|
<div class="ui container">
|
|
<div class="ui left">
|
|
{{.locale.Tr "powered_by" "Gitea"}}
|
|
{{if (or .ShowFooterVersion .PageIsAdmin)}}
|
|
{{.locale.Tr "version"}}:
|
|
{{if .IsAdmin}}
|
|
<a href="/admin/config">{{AppVer}}</a>
|
|
{{else}}
|
|
{{AppVer}}
|
|
{{end}}
|
|
{{end}}
|
|
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
|
|
{{.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">
|
|
{{if .ShowFooterBranding}}
|
|
<a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea">{{svg "octicon-mark-github"}}<span class="sr-only">GitHub</span></a>
|
|
{{end}}
|
|
<div class="ui language bottom floating slide up dropdown link item">
|
|
{{svg "octicon-globe"}}
|
|
<div class="text">{{.i18n.LangName}}</div>
|
|
<div class="menu">
|
|
{{range .AllLangs}}
|
|
<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">{{.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}}
|
|
</div>
|
|
</div>
|
|
</footer>
|