You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

footer_content.tmpl 1.5KB

1234567891011121314151617181920212223242526272829303132
  1. <footer class="page-footer" role="group" aria-label="{{ctx.Locale.Tr "aria.footer"}}">
  2. <div class="left-links" role="contentinfo" aria-label="{{ctx.Locale.Tr "aria.footer.software"}}">
  3. {{if ShowFooterPoweredBy}}
  4. <a target="_blank" rel="noopener noreferrer" href="https://about.gitea.com">{{ctx.Locale.Tr "powered_by" "Gitea"}}</a>
  5. {{end}}
  6. {{if (or .ShowFooterVersion .PageIsAdmin)}}
  7. {{ctx.Locale.Tr "version"}}:
  8. {{if .IsAdmin}}
  9. <a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a>
  10. {{else}}
  11. {{AppVer}}
  12. {{end}}
  13. {{end}}
  14. {{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
  15. {{ctx.Locale.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
  16. {{ctx.Locale.Tr "template"}}{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>
  17. {{end}}
  18. </div>
  19. <div class="right-links" role="group" aria-label="{{ctx.Locale.Tr "aria.footer.links"}}">
  20. <div class="ui dropdown upward language">
  21. <span class="flex-text-inline">{{svg "octicon-globe" 14}} {{ctx.Locale.LangName}}</span>
  22. <div class="menu language-menu">
  23. {{range .AllLangs}}
  24. <a lang="{{.Lang}}" data-url="{{AppSubUrl}}/?lang={{.Lang}}" class="item {{if eq ctx.Locale.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
  25. {{end}}
  26. </div>
  27. </div>
  28. <a href="{{AssetUrlPrefix}}/licenses.txt">{{ctx.Locale.Tr "licenses"}}</a>
  29. {{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
  30. {{template "custom/extra_links_footer" .}}
  31. </div>
  32. </footer>