summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorEarl Warren <earl-warren@noreply.codeberg.org>2024-12-30 16:29:21 +0100
committerEarl Warren <earl-warren@noreply.codeberg.org>2024-12-30 16:29:21 +0100
commit8e3c066b27016abe94695aef9e92d0a5c7ea607e (patch)
treee1baa03c28fef941278b68adf67fbbf4497fc84d /modules
parentMerge pull request 'fix: use DateUtils for blocked users list' (#6410) from g... (diff)
parentchore(branding): strip metadata information from the footer (diff)
downloadforgejo-8e3c066b27016abe94695aef9e92d0a5c7ea607e.tar.xz
forgejo-8e3c066b27016abe94695aef9e92d0a5c7ea607e.zip
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>
Diffstat (limited to 'modules')
-rw-r--r--modules/templates/helper.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 55de85646c..023ba60fa9 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -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
},