diff options
author | Steven Thonus <steven@ln2.nl> | 2013-11-28 22:46:55 +0100 |
---|---|---|
committer | Steven Thonus <steven@ln2.nl> | 2013-11-29 09:32:34 +0100 |
commit | 5907207e4ddb85fff997ad243f6be7486800eceb (patch) | |
tree | 307914f5a8629621de966ef856d27cd30169fd51 /app/views/shared | |
parent | 2e07865f16f96bc4706758cc5f2634574d38be37 (diff) | |
download | gitlab-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.haml | 6 |
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 |