diff options
author | Jason Hollingsworth <jhworth.developer@gmail.com> | 2014-01-08 07:03:27 +0400 |
---|---|---|
committer | Jason Hollingsworth <jhworth.developer@gmail.com> | 2014-01-08 20:06:03 +0400 |
commit | 04baf0b569a84430cb8c366594b82a72a4ff73b6 (patch) | |
tree | 051514d054ad61a6f59608d86ecb749e6146dcba /app/views/shared/_clone_panel.html.haml | |
parent | 3c7a80646198c546a2cfd4aa05b7724f51a6eb7f (diff) |
Update clone panel to use input group.
Use clone panel in `Git Access` section of wiki.
Diffstat (limited to 'app/views/shared/_clone_panel.html.haml')
-rw-r--r-- | app/views/shared/_clone_panel.html.haml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/shared/_clone_panel.html.haml b/app/views/shared/_clone_panel.html.haml index be71236c52c..8cd426c71e6 100644 --- a/app/views/shared/_clone_panel.html.haml +++ b/app/views/shared/_clone_panel.html.haml @@ -1,6 +1,6 @@ -.git-clone-holder - .protocol-btns - %button{class: "btn #{ 'active' if default_clone_protocol == 'ssh' }", :"data-clone" => @project.ssh_url_to_repo} SSH - %button{class: "btn #{ 'active' if default_clone_protocol == 'http' }", :"data-clone" => @project.http_url_to_repo}= gitlab_config.protocol.upcase - .protocol-clone - = text_field_tag :project_clone, default_url_to_repo, class: "one_click_select span4", readonly: true +- project = project || @project +.git-clone-holder.input-group + .input-group-btn + %button{class: "btn #{ 'active' if default_clone_protocol == 'ssh' }", :"data-clone" => project.ssh_url_to_repo} SSH + %button{class: "btn #{ 'active' if default_clone_protocol == 'http' }", :"data-clone" => project.http_url_to_repo}= gitlab_config.protocol.upcase + = text_field_tag :project_clone, default_url_to_repo(project), class: "one_click_select form-control", readonly: true |