Commit 049d7ae3fd2995b1f7caf28c3b300cef132e3ab0

Authored by Braulio Bhavamitra
1 parent e65ff0a5

folder: fix empty subfolder view

It seems #empty? is emptying #children (probably a rails bug)
Showing 1 changed file with 2 additions and 5 deletions   Show diff stats
app/views/content_viewer/folder.html.erb
@@ -4,8 +4,5 @@ @@ -4,8 +4,5 @@
4 </div> 4 </div>
5 <% end %> 5 <% end %>
6 6
7 -<% if folder.children.empty? %>  
8 - <em><%= _('(empty folder)') %></em>  
9 -<% else %>  
10 - <%= list_contents(:contents=>folder.children) %>  
11 -<% end %> 7 +<%= list_contents contents: folder.children %>
  8 +