summaryrefslogtreecommitdiffstats
path: root/modules/template
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-13 23:16:58 -0500
committerUnknwon <u@gogs.io>2015-12-13 23:16:58 -0500
commitea375c0dcca118c8ac3c48ba569b025836ad5ccf (patch)
treec98d8c3b631cfe7466216dfea24a172116abfd72 /modules/template
parent7509fa2c33b6eeff20091a4c6883c006d99b3425 (diff)
downloadgitea-ea375c0dcca118c8ac3c48ba569b025836ad5ccf.tar.gz
gitea-ea375c0dcca118c8ac3c48ba569b025836ad5ccf.zip
new template func
Diffstat (limited to 'modules/template')
-rw-r--r--modules/template/template.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/template/template.go b/modules/template/template.go
index cc670a651f..638febe89d 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -34,6 +34,9 @@ var Funcs template.FuncMap = map[string]interface{}{
"AppSubUrl": func() string {
return setting.AppSubUrl
},
+ "AppUrl": func() string {
+ return setting.AppUrl
+ },
"AppVer": func() string {
return setting.AppVer
},