Remove locals from tree/tree_file and just use "object" instead

This commit is contained in:
Robert Speicher 2012-10-03 18:28:50 -04:00
parent b5328879f5
commit 96b4acf5e7
2 changed files with 15 additions and 13 deletions

View file

@ -6,11 +6,13 @@
- tree.breadcrumbs(6) do |link|
\/
%li= link
.clear
%div.tree_progress
%div#tree-content-holder.tree-content-holder
- if tree.is_blob?
= render partial: "tree/tree_file", locals: { name: tree.name, content: tree.data, file: tree }
= render partial: "tree/tree_file", object: tree
- else
- contents = tree.contents
%table#tree-slider{class: "table_#{@hex_path} tree-table" }