Tweak version in footer

Signed-off-by: Minecon724 <minecon724@noreply.git.m724.eu>
This commit is contained in:
Minecon724 2025-03-21 08:02:59 +01:00
parent 43b4a57be3
commit 2eefc2c68a
Signed by: Minecon724
GPG key ID: A02E6E67AB961189

View file

@ -4,11 +4,10 @@
<a target="_blank" rel="noopener noreferrer" href="https://forgejo.org">{{ctx.Locale.Tr "powered_by" "Forgejo"}}</a>
{{end}}
{{if (or .ShowFooterVersion .PageIsAdmin)}}
{{ctx.Locale.Tr "version"}}:
{{if .IsAdmin}}
<a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a>
<a href="{{AppSubUrl}}/admin/config">v{{AppVer}}</a>
{{else}}
{{AppVerNoMetadata}}
v{{AppVerNoMetadata}}
{{end}}
{{end}}
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}