diff options
author | Unknwon <u@gogs.io> | 2015-11-22 13:01:42 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-22 13:01:42 -0500 |
commit | b2fb7e3fd27f360e65ee60b93cad7d5d9832f818 (patch) | |
tree | 79b4a47b1f18c3b9a6f871d0262af6c71f82b4fc /modules | |
parent | efaf60ba5a4a7c0954dbaf57203859db3258281f (diff) | |
download | gitea-b2fb7e3fd27f360e65ee60b93cad7d5d9832f818.tar.gz gitea-b2fb7e3fd27f360e65ee60b93cad7d5d9832f818.zip |
more HTTP clone word fix
Diffstat (limited to 'modules')
-rw-r--r-- | modules/template/template.go | 4 |
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 |