From 38ecec447299ed77a358782a1c0d9c058b91631e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 14 Mar 2013 19:50:57 +0200 Subject: [PATCH] Remove tree single-tab panel --- app/assets/stylesheets/common.scss | 11 ----------- app/assets/stylesheets/sections/tree.scss | 4 ++++ app/views/tree/_head.html.haml | 7 ------- app/views/tree/_tree.html.haml | 4 ++-- app/views/tree/show.html.haml | 3 ++- 5 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 app/views/tree/_head.html.haml diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 9afbd8f..622d65f 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -173,17 +173,6 @@ ul.breadcrumb { font-weight: bold; font-size: 14px; } - - .arrow { - background: url("images.png") no-repeat -85px -77px; - width: 19px; - height: 16px; - float: left; - position: relative; - left: -10px; - padding: 0; - margin: 0; - } } input[type=text] { diff --git a/app/assets/stylesheets/sections/tree.scss b/app/assets/stylesheets/sections/tree.scss index 0ba68e5..def440c 100644 --- a/app/assets/stylesheets/sections/tree.scss +++ b/app/assets/stylesheets/sections/tree.scss @@ -102,3 +102,7 @@ } } +.tree-ref-holder { + float: left; + margin-top: 5px; +} diff --git a/app/views/tree/_head.html.haml b/app/views/tree/_head.html.haml deleted file mode 100644 index 32c3882..0000000 --- a/app/views/tree/_head.html.haml +++ /dev/null @@ -1,7 +0,0 @@ -%ul.nav.nav-tabs - %li - = render partial: 'shared/ref_switcher', locals: {destination: 'tree', path: @path} - = nav_link(controller: :tree) do - = link_to 'Source', project_tree_path(@project, @ref) - %li.pull-right - = render "shared/clone_panel" diff --git a/app/views/tree/_tree.html.haml b/app/views/tree/_tree.html.haml index dc3a844..24a57ae 100644 --- a/app/views/tree/_tree.html.haml +++ b/app/views/tree/_tree.html.haml @@ -1,8 +1,8 @@ %ul.breadcrumb %li - %span.arrow + %i.icon-angle-right = link_to project_tree_path(@project, @ref) do - = @project.name + = @project.path - tree.breadcrumbs(6) do |title, path| \/ %li diff --git a/app/views/tree/show.html.haml b/app/views/tree/show.html.haml index a4034f2..0f7692a 100644 --- a/app/views/tree/show.html.haml +++ b/app/views/tree/show.html.haml @@ -1,3 +1,4 @@ -= render "head" +%div.tree-ref-holder + = render 'shared/ref_switcher', destination: 'tree', path: @path %div#tree-holder.tree-holder = render "tree", tree: @tree -- libgit2 0.21.2