mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-30 22:06:11 +01:00
39 lines
1.6 KiB
Handlebars
39 lines
1.6 KiB
Handlebars
<footer>
|
|
<div class="ui container">
|
|
<div class="ui left">
|
|
<a target="_blank" rel="noopener noreferrer" href="https://forgejo.org">{{.i18n.Tr "powered_by" "Forgejo"}}</a>
|
|
{{if (or .ShowFooterVersion .PageIsAdmin)}}
|
|
{{.i18n.Tr "version"}}:
|
|
{{if .IsAdmin}}
|
|
<a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a>
|
|
{{else}}
|
|
{{AppVer}}
|
|
{{end}}
|
|
{{end}}
|
|
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
|
|
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
|
|
{{.i18n.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://codeberg.org/forgejo/forgejo">{{svg "octicon-git-branch"}}<span class="sr-only">Codeberg</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 language-menu">
|
|
{{range .AllLangs}}
|
|
<a lang="{{.Lang}}" data-url="{{AppSubUrl}}/?lang={{.Lang}}" class="item {{if eq $.i18n.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
<a href="{{AssetUrlPrefix}}/js/licenses.txt">{{.i18n.Tr "licenses"}}</a>
|
|
{{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
|
|
<a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.i18n.Tr "website"}}</a>
|
|
{{template "custom/extra_links_footer" .}}
|
|
</div>
|
|
</div>
|
|
</footer>
|