OSDN Git Service

Remove tree single-tab panel
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 14 Mar 2013 17:50:57 +0000 (19:50 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 14 Mar 2013 17:50:57 +0000 (19:50 +0200)
app/assets/stylesheets/common.scss
app/assets/stylesheets/sections/tree.scss
app/views/tree/_head.html.haml [deleted file]
app/views/tree/_tree.html.haml
app/views/tree/show.html.haml

index 9afbd8f..622d65f 100644 (file)
@@ -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] {
index 0ba68e5..def440c 100644 (file)
   }
 }
 
+.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 (file)
index 32c3882..0000000
+++ /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"
index dc3a844..24a57ae 100644 (file)
@@ -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
index a4034f2..0f7692a 100644 (file)
@@ -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