From 6ddb35bd5e27829609e40b8dd87313a01fb6f293 Mon Sep 17 00:00:00 2001 From: Robert Speicher <rspeicher@gmail.com> Date: Mon, 17 Sep 2012 10:57:13 -0400 Subject: [PATCH] Move tree-related views from refs to trees --- app/views/tree/_head.html.haml | 11 +++++++++++ app/views/{refs => tree}/_submodule_item.html.haml | 0 app/views/{refs => tree}/_tree.html.haml | 0 app/views/{refs => tree}/_tree_commit.html.haml | 0 app/views/{refs => tree}/_tree_file.html.haml | 0 app/views/{refs => tree}/_tree_item.html.haml | 0 .../{refs/tree.html.haml => tree/show.html.haml} | 0 app/views/{refs/tree.js.haml => tree/show.js.haml} | 0 8 files changed, 11 insertions(+) create mode 100644 app/views/tree/_head.html.haml rename app/views/{refs => tree}/_submodule_item.html.haml (100%) rename app/views/{refs => tree}/_tree.html.haml (100%) rename app/views/{refs => tree}/_tree_commit.html.haml (100%) rename app/views/{refs => tree}/_tree_file.html.haml (100%) rename app/views/{refs => tree}/_tree_item.html.haml (100%) rename app/views/{refs/tree.html.haml => tree/show.html.haml} (100%) rename app/views/{refs/tree.js.haml => tree/show.js.haml} (100%) 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 similarity index 100% rename from app/views/refs/_submodule_item.html.haml rename to app/views/tree/_submodule_item.html.haml diff --git a/app/views/refs/_tree.html.haml b/app/views/tree/_tree.html.haml similarity index 100% rename from app/views/refs/_tree.html.haml rename to app/views/tree/_tree.html.haml diff --git a/app/views/refs/_tree_commit.html.haml b/app/views/tree/_tree_commit.html.haml similarity index 100% rename from app/views/refs/_tree_commit.html.haml rename to 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 similarity index 100% rename from app/views/refs/_tree_file.html.haml rename to 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 similarity index 100% rename from app/views/refs/_tree_item.html.haml rename to app/views/tree/_tree_item.html.haml diff --git a/app/views/refs/tree.html.haml b/app/views/tree/show.html.haml similarity index 100% rename from app/views/refs/tree.html.haml rename to app/views/tree/show.html.haml diff --git a/app/views/refs/tree.js.haml b/app/views/tree/show.js.haml similarity index 100% rename from app/views/refs/tree.js.haml rename to app/views/tree/show.js.haml -- GitLab