mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-02 21:28:45 +00:00
Merge pull request 'chore(branding): strip metadata information from the footer' (#6403) from earl-warren/forgejo:wip-footer into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6403 Reviewed-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
commit
8e3c066b27
3 changed files with 6 additions and 2 deletions
|
@ -103,6 +103,10 @@ func NewFuncMap() template.FuncMap {
|
|||
"AppVer": func() string {
|
||||
return setting.AppVer
|
||||
},
|
||||
"AppVerNoMetadata": func() string {
|
||||
version, _, _ := strings.Cut(setting.AppVer, "+")
|
||||
return version
|
||||
},
|
||||
"AppDomain": func() string { // documented in mail-templates.md
|
||||
return setting.Domain
|
||||
},
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{{if .IsAdmin}}
|
||||
<a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a>
|
||||
{{else}}
|
||||
{{AppVer}}
|
||||
{{AppVerNoMetadata}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<div class="divider"></div>
|
||||
<br>
|
||||
{{if .ShowFooterVersion}}<p>{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
|
||||
{{if .ShowFooterVersion}}<p>{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVerNoMetadata}}</p>{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
||||
|
|
Loading…
Reference in a new issue