summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorSteven Thonus <steven@ln2.nl>2013-11-28 22:46:55 +0100
committerSteven Thonus <steven@ln2.nl>2013-11-29 09:32:34 +0100
commit5907207e4ddb85fff997ad243f6be7486800eceb (patch)
tree307914f5a8629621de966ef856d27cd30169fd51 /app/views/shared
parent2e07865f16f96bc4706758cc5f2634574d38be37 (diff)
downloadgitlab-ce-5907207e4ddb85fff997ad243f6be7486800eceb.tar.gz
showing as default http link for public repo when anonymous
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_clone_panel.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/shared/_clone_panel.html.haml b/app/views/shared/_clone_panel.html.haml
index ac7b9ee7f2d..097c81100ba 100644
--- a/app/views/shared/_clone_panel.html.haml
+++ b/app/views/shared/_clone_panel.html.haml
@@ -1,4 +1,4 @@
.git-clone-holder
- %button{class: "btn active", :"data-clone" => @project.ssh_url_to_repo} SSH
- %button{class: "btn", :"data-clone" => @project.http_url_to_repo}= gitlab_config.protocol.upcase
- = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5", readonly: true
+ %button{class: "btn #{ current_user ? 'active' : '' }", :"data-clone" => @project.ssh_url_to_repo} SSH
+ %button{class: "btn #{ current_user ? '' : 'active' }", :"data-clone" => @project.http_url_to_repo}= gitlab_config.protocol.upcase
+ = text_field_tag :project_clone, (current_user ? @project.url_to_repo : @project.http_url_to_repo), class: "one_click_select span5", readonly: true