summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-22 13:01:42 -0500
committerUnknwon <u@gogs.io>2015-11-22 13:01:42 -0500
commitb2fb7e3fd27f360e65ee60b93cad7d5d9832f818 (patch)
tree79b4a47b1f18c3b9a6f871d0262af6c71f82b4fc /modules
parentefaf60ba5a4a7c0954dbaf57203859db3258281f (diff)
downloadgitea-b2fb7e3fd27f360e65ee60b93cad7d5d9832f818.tar.gz
gitea-b2fb7e3fd27f360e65ee60b93cad7d5d9832f818.zip
more HTTP clone word fix
Diffstat (limited to 'modules')
-rw-r--r--modules/template/template.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/template/template.go b/modules/template/template.go
index 8d602760ad..37c7d79351 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -25,8 +25,8 @@ var Funcs template.FuncMap = map[string]interface{}{
"GoVer": func() string {
return strings.Title(runtime.Version())
},
- "Protocol": func() string {
- return string(setting.Protocol)
+ "UseHTTPS": func() bool {
+ return strings.HasPrefix(setting.AppUrl, "https")
},
"AppName": func() string {
return setting.AppName