Commit fa2fa905a4abeeb1ea2be0624ff859ebdfda173b

Authored by Antonio Terceiro
1 parent 79df3e28

Ommit horizontal rules for empty bodies

Showing 1 changed file with 6 additions and 4 deletions   Show diff stats
app/views/content_viewer/folder.rhtml
1   -<div>
2   - <%= folder.body %>
3   -</div>
4   -<hr/>
  1 +<% unless folder.body.blank? %>
  2 + <div>
  3 + <%= folder.body %>
  4 + </div>
  5 + <hr/>
  6 +<% end %>
5 7  
6 8 <% if folder.children.empty? %>
7 9 <em><%= _('(empty folder)') %></em>
... ...