diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 9afbd8fb53cc81de3e27b3fc84876836878ef53d..622d65f696fc675706f474197c2ad926cab5cdad 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 0ba68e5010cd8b475b051651f517d12b898dcddb..def440c71349ffc23599c379bd8f302456e10671 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 32c3882400eed8d0858d46be2e1c71c38bb6fee7..0000000000000000000000000000000000000000 --- 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 dc3a84404a3eb7ad4db94ba1bcb4984c2a659613..24a57ae7a29ab538e80dfa6d854c6285dba3216c 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 a4034f22faccb3eb17541d6e6bf1fcc342c66987..0f7692aba7f5f69d121079286eebebbdde58d1f0 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