diff options
author | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-12-30 16:29:21 +0100 |
---|---|---|
committer | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-12-30 16:29:21 +0100 |
commit | 8e3c066b27016abe94695aef9e92d0a5c7ea607e (patch) | |
tree | e1baa03c28fef941278b68adf67fbbf4497fc84d /modules | |
parent | Merge pull request 'fix: use DateUtils for blocked users list' (#6410) from g... (diff) | |
parent | chore(branding): strip metadata information from the footer (diff) | |
download | forgejo-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.go | 4 |
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 }, |