diff options
author | Unknwon <u@gogs.io> | 2015-12-19 21:12:13 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-19 21:12:13 -0500 |
commit | 3bcdb3855cffb916944923e7442c929ff94d4574 (patch) | |
tree | 801fbaf7b6ebe30b5d1f1c3ca7b3880cc02aaa13 /templates | |
parent | f00fef0cd0c69107c8d4269ef3cf93db076e6d95 (diff) | |
download | gitea-3bcdb3855cffb916944923e7442c929ff94d4574.tar.gz gitea-3bcdb3855cffb916944923e7442c929ff94d4574.zip |
#2250 Use HTTP/HTTPS as default clone option
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/home.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 22a2f839a5..2e5c7e0841 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -35,15 +35,15 @@ {{if eq $n 0}} <div class="right fitted item"> <div class="ui action small input" id="clone-panel"> + <button class="ui blue basic clone button" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}"> + {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}} + </button> {{if not $.DisableSSH}} - <button class="ui blue basic clone button" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}"> + <button class="ui basic clone button" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}"> SSH </button> {{end}} - <button class="ui {{if $.DisableSSH}}blue{{end}} basic clone button" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}"> - {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}} - </button> - <input id="repo-clone-url" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly> + <input id="repo-clone-url" value="{{$.CloneLink.HTTPS}}" 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"> <i class="octicon octicon-clippy"></i> </button> |