Commit 38ecec447299ed77a358782a1c0d9c058b91631e

Authored by Dmitriy Zaporozhets
1 parent 5c4e74ac

Remove tree single-tab panel

app/assets/stylesheets/common.scss
... ... @@ -173,17 +173,6 @@ ul.breadcrumb {
173 173 font-weight: bold;
174 174 font-size: 14px;
175 175 }
176   -
177   - .arrow {
178   - background: url("images.png") no-repeat -85px -77px;
179   - width: 19px;
180   - height: 16px;
181   - float: left;
182   - position: relative;
183   - left: -10px;
184   - padding: 0;
185   - margin: 0;
186   - }
187 176 }
188 177  
189 178 input[type=text] {
... ...
app/assets/stylesheets/sections/tree.scss
... ... @@ -102,3 +102,7 @@
102 102 }
103 103 }
104 104  
  105 +.tree-ref-holder {
  106 + float: left;
  107 + margin-top: 5px;
  108 +}
... ...
app/views/tree/_head.html.haml
... ... @@ -1,7 +0,0 @@
1   -%ul.nav.nav-tabs
2   - %li
3   - = render partial: 'shared/ref_switcher', locals: {destination: 'tree', path: @path}
4   - = nav_link(controller: :tree) do
5   - = link_to 'Source', project_tree_path(@project, @ref)
6   - %li.pull-right
7   - = render "shared/clone_panel"
app/views/tree/_tree.html.haml
1 1 %ul.breadcrumb
2 2 %li
3   - %span.arrow
  3 + %i.icon-angle-right
4 4 = link_to project_tree_path(@project, @ref) do
5   - = @project.name
  5 + = @project.path
6 6 - tree.breadcrumbs(6) do |title, path|
7 7 \/
8 8 %li
... ...
app/views/tree/show.html.haml
1   -= render "head"
  1 +%div.tree-ref-holder
  2 + = render 'shared/ref_switcher', destination: 'tree', path: @path
2 3 %div#tree-holder.tree-holder
3 4 = render "tree", tree: @tree
... ...