Move tree-related views from refs to trees
This commit is contained in:
parent
567767bcf2
commit
6ddb35bd5e
11
app/views/tree/_head.html.haml
Normal file
11
app/views/tree/_head.html.haml
Normal file
|
@ -0,0 +1,11 @@
|
|||
%ul.nav.nav-tabs
|
||||
%li
|
||||
= render partial: 'shared/ref_switcher', locals: {destination: 'tree', path: params[:path]}
|
||||
%li{class: "#{'active' if (controller.controller_name == "refs") }"}
|
||||
= link_to tree_project_ref_path(@project, @ref) do
|
||||
Source
|
||||
%li.right
|
||||
.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} HTTP
|
||||
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
|
Loading…
Reference in a new issue