summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
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
},