Commit 0447ab37 authored by Riyad Preukschas's avatar Riyad Preukschas

Extract shared/clone_panel partial

parent ff396e0a
...@@ -4,7 +4,4 @@ ...@@ -4,7 +4,4 @@
= nav_link(controller: :refs) do = nav_link(controller: :refs) do
= link_to 'Source', project_tree_path(@project, @ref) = link_to 'Source', project_tree_path(@project, @ref)
%li.right %li.right
.input-prepend.project_clone_holder = render "shared/clone_panel"
%button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH
%button{class: "btn small", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.web_protocol.upcase
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
.project_clone_panel .project_clone_panel
.row .row
.span7 .span7
.form-horizontal .form-horizontal= render "shared/clone_panel"
.input-prepend.project_clone_holder
%button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH
%button{class: "btn small", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.web_protocol.upcase
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
.span4.right .span4.right
.right .right
- unless @project.empty_repo? - unless @project.empty_repo?
......
.input-prepend.project_clone_holder
%button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH
%button{class: "btn small", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.web_protocol.upcase
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
...@@ -4,7 +4,4 @@ ...@@ -4,7 +4,4 @@
= nav_link(controller: :tree) do = nav_link(controller: :tree) do
= link_to 'Source', project_tree_path(@project, @ref) = link_to 'Source', project_tree_path(@project, @ref)
%li.right %li.right
.input-prepend.project_clone_holder = render "shared/clone_panel"
%button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH \ No newline at end of file
%button{class: "btn small", :"data-clone" => @project.http_url_to_repo} HTTP
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment