diff options
Diffstat (limited to 'templates/base/footer_content.tmpl')
-rw-r--r-- | templates/base/footer_content.tmpl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl index ad666152a0..e9991fdb49 100644 --- a/templates/base/footer_content.tmpl +++ b/templates/base/footer_content.tmpl @@ -1,8 +1,8 @@ -<footer class="page-footer" role="group" aria-label="{{.locale.Tr "aria.footer"}}"> - <div class="left-links" role="contentinfo" aria-label="{{.locale.Tr "aria.footer.software"}}"> - <a target="_blank" rel="noopener noreferrer" href="https://about.gitea.com">{{.locale.Tr "powered_by" "Gitea"}}</a> +<footer class="page-footer" role="group" aria-label="{{ctx.Locale.Tr "aria.footer"}}"> + <div class="left-links" role="contentinfo" aria-label="{{ctx.Locale.Tr "aria.footer.software"}}"> + <a target="_blank" rel="noopener noreferrer" href="https://about.gitea.com">{{ctx.Locale.Tr "powered_by" "Gitea"}}</a> {{if (or .ShowFooterVersion .PageIsAdmin)}} - {{.locale.Tr "version"}}: + {{ctx.Locale.Tr "version"}}: {{if .IsAdmin}} <a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a> {{else}} @@ -10,11 +10,11 @@ {{end}} {{end}} {{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}} - {{.locale.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> - {{.locale.Tr "template"}}{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong> + {{ctx.Locale.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> + {{ctx.Locale.Tr "template"}}{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong> {{end}} </div> - <div class="right-links" role="group" aria-label="{{.locale.Tr "aria.footer.links"}}"> + <div class="right-links" role="group" aria-label="{{ctx.Locale.Tr "aria.footer.links"}}"> <div class="ui dropdown upward language"> <span class="flex-text-inline">{{svg "octicon-globe" 14}} {{.locale.LangName}}</span> <div class="menu language-menu"> @@ -23,7 +23,7 @@ {{end}} </div> </div> - <a href="{{AssetUrlPrefix}}/licenses.txt">{{.locale.Tr "licenses"}}</a> + <a href="{{AssetUrlPrefix}}/licenses.txt">{{ctx.Locale.Tr "licenses"}}</a> {{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}} {{template "custom/extra_links_footer" .}} </div> |