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 /templates | |
parent | efaf60ba5a4a7c0954dbaf57203859db3258281f (diff) | |
download | gitea-b2fb7e3fd27f360e65ee60b93cad7d5d9832f818.tar.gz gitea-b2fb7e3fd27f360e65ee60b93cad7d5d9832f818.zip |
more HTTP clone word fix
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/bare.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/home.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/bare.tmpl b/templates/repo/bare.tmpl index e57420d8e5..af839cbaf8 100644 --- a/templates/repo/bare.tmpl +++ b/templates/repo/bare.tmpl @@ -22,7 +22,7 @@ </button> {{end}} <button class="ui {{if $.DisableSSH}}blue{{end}} basic clone button" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}"> - HTTPS + {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}} </button> <input id="repo-clone-url" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly> <button class="ui basic button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url"> diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 4069eff384..ab82c8423c 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -18,7 +18,7 @@ </button> {{end}} <button class="ui {{if $.DisableSSH}}blue{{end}} basic clone button" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}"> - {{if eq Protocol "http"}}HTTP{{else}}HTTPS{{end}} + {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}} </button> <input id="repo-clone-url" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly> <button class="ui basic icon button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url"> |