submodules displayed for tree view

This commit is contained in:
Dmitriy Zaporozhets 2012-02-14 23:48:42 +02:00
parent c062e56b4c
commit a7bcc2eb5c
8 changed files with 38 additions and 9 deletions

View file

@ -39,6 +39,8 @@
= render :partial => "refs/tree_item", :locals => { :content => content }
- contents.select{ |i| i.is_a?(Grit::Blob)}.each do |content|
= render :partial => "refs/tree_item", :locals => { :content => content }
- contents.select{ |i| i.is_a?(Grit::Submodule)}.each do |content|
= render :partial => "refs/submodule_item", :locals => { :content => content }
- if content = contents.select{ |c| c.is_a?(Grit::Blob) and c.name =~ /^readme/i }.first
#tree-readme-holder