diff options
author | Florian Kaiser <florian.kaiser@fnkr.net> | 2016-02-01 16:30:28 +0000 |
---|---|---|
committer | Florian Kaiser <florian.kaiser@fnkr.net> | 2016-02-01 17:04:58 +0000 |
commit | d56801930668597bb8329978e384e61c0bd314ac (patch) | |
tree | f4026b1eb42fc07ca74abd68d4884906e6842dc8 /templates/repo/wiki | |
parent | 5d192c2ebf0703fa0e7a5af7adbcaaec0d3b7dc9 (diff) | |
download | gitea-d56801930668597bb8329978e384e61c0bd314ac.tar.gz gitea-d56801930668597bb8329978e384e61c0bd314ac.zip |
Remember last selected clone protocol, and establish uniform order (https, ssh)
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r-- | templates/repo/wiki/view.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 050c34b0a9..c1b6c6f72d 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -29,15 +29,15 @@ </div> <div class="ui six wide column"> <div class="ui action small input" id="clone-panel"> + <button class="ui basic clone button" id="repo-clone-https" data-link="{{.WikiCloneLink.HTTPS}}"> + {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}} + </button> {{if not $.DisableSSH}} - <button class="ui blue basic clone button" id="repo-clone-ssh" data-link="{{.WikiCloneLink.SSH}}"> + <button class="ui basic clone button" id="repo-clone-ssh" data-link="{{.WikiCloneLink.SSH}}"> SSH </button> {{end}} - <button class="ui {{if $.DisableSSH}}blue{{end}} basic clone button" id="repo-clone-https" data-link="{{.WikiCloneLink.HTTPS}}"> - {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}} - </button> - <input id="repo-clone-url" value="{{if $.DisableSSH}}{{$.WikiCloneLink.HTTPS}}{{else}}{{$.WikiCloneLink.SSH}}{{end}}" readonly> + <input id="repo-clone-url" value="{{$.WikiCloneLink.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> |