Commit a7f039c706c85a11ca0990b4912c27f0585911f9

Authored by Antonio Terceiro
2 parents 27d346ba 049d7ae3

Merge branch 'empty-folder-view' into 'master'

folder: #empty? is emptying #children (probably a rails bug)

See merge request !637
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 4 </div>
5 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 +
... ...