summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-17 10:57:13 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-26 16:32:21 -0400
commit6ddb35bd5e27829609e40b8dd87313a01fb6f293 (patch)
tree784b7f5c203fc7af2494ba5c5a9724066f7ba427
parent567767bcf2af2c330c46fde820101fcf847e852f (diff)
downloadgitlab-ce-6ddb35bd5e27829609e40b8dd87313a01fb6f293.tar.gz
Move tree-related views from refs to trees
-rw-r--r--app/views/tree/_head.html.haml11
-rw-r--r--app/views/tree/_submodule_item.html.haml (renamed from app/views/refs/_submodule_item.html.haml)0
-rw-r--r--app/views/tree/_tree.html.haml (renamed from app/views/refs/_tree.html.haml)0
-rw-r--r--app/views/tree/_tree_commit.html.haml (renamed from app/views/refs/_tree_commit.html.haml)0
-rw-r--r--app/views/tree/_tree_file.html.haml (renamed from app/views/refs/_tree_file.html.haml)0
-rw-r--r--app/views/tree/_tree_item.html.haml (renamed from app/views/refs/_tree_item.html.haml)0
-rw-r--r--app/views/tree/show.html.haml (renamed from app/views/refs/tree.html.haml)0
-rw-r--r--app/views/tree/show.js.haml (renamed from app/views/refs/tree.js.haml)0
8 files changed, 11 insertions, 0 deletions
diff --git a/app/views/tree/_head.html.haml b/app/views/tree/_head.html.haml
new file mode 100644
index 00000000000..3592f5737ce
--- /dev/null
+++ b/app/views/tree/_head.html.haml
@@ -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"
diff --git a/app/views/refs/_submodule_item.html.haml b/app/views/tree/_submodule_item.html.haml
index 6b9f5877028..6b9f5877028 100644
--- a/app/views/refs/_submodule_item.html.haml
+++ b/app/views/tree/_submodule_item.html.haml
diff --git a/app/views/refs/_tree.html.haml b/app/views/tree/_tree.html.haml
index 55078718b79..55078718b79 100644
--- a/app/views/refs/_tree.html.haml
+++ b/app/views/tree/_tree.html.haml
diff --git a/app/views/refs/_tree_commit.html.haml b/app/views/tree/_tree_commit.html.haml
index 1bcf1a7ea1d..1bcf1a7ea1d 100644
--- a/app/views/refs/_tree_commit.html.haml
+++ b/app/views/tree/_tree_commit.html.haml
diff --git a/app/views/refs/_tree_file.html.haml b/app/views/tree/_tree_file.html.haml
index 76173e24246..76173e24246 100644
--- a/app/views/refs/_tree_file.html.haml
+++ b/app/views/tree/_tree_file.html.haml
diff --git a/app/views/refs/_tree_item.html.haml b/app/views/tree/_tree_item.html.haml
index d4c4ee8de49..d4c4ee8de49 100644
--- a/app/views/refs/_tree_item.html.haml
+++ b/app/views/tree/_tree_item.html.haml
diff --git a/app/views/refs/tree.html.haml b/app/views/tree/show.html.haml
index 181be6426d4..181be6426d4 100644
--- a/app/views/refs/tree.html.haml
+++ b/app/views/tree/show.html.haml
diff --git a/app/views/refs/tree.js.haml b/app/views/tree/show.js.haml
index 92e90579304..92e90579304 100644
--- a/app/views/refs/tree.js.haml
+++ b/app/views/tree/show.js.haml