summaryrefslogtreecommitdiffstats
path: root/modules/template
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-22 02:42:39 -0500
committerUnknwon <u@gogs.io>2015-11-22 02:42:39 -0500
commitefaf60ba5a4a7c0954dbaf57203859db3258281f (patch)
treec869c219a3fc0ad1854fa0edcfd462e713fabf54 /modules/template
parente6b2a01e5d4f556ce35d4343094b74dc680d7cce (diff)
downloadgitea-efaf60ba5a4a7c0954dbaf57203859db3258281f.tar.gz
gitea-efaf60ba5a4a7c0954dbaf57203859db3258281f.zip
fix #2013
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 712185576c..8d602760ad 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -25,6 +25,9 @@ var Funcs template.FuncMap = map[string]interface{}{
"GoVer": func() string {
return strings.Title(runtime.Version())
},
+ "Protocol": func() string {
+ return string(setting.Protocol)
+ },
"AppName": func() string {
return setting.AppName
},