Commit 66eb23a537577fa8c59d22329c83b260705b1755

Authored by AurelioAHeckert
1 parent facdebfb

ActionItem474: empty category hidden

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2096 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
app/views/content_viewer/view_page.rhtml
... ... @@ -58,12 +58,16 @@
58 58  
59 59 <%= @page.to_html %>
60 60  
  61 +<br style="clear:both" />
  62 +
  63 +<% if ! @page.categories.empty? %>
61 64 <div id="article-cat">
62 65 <h4><%= _('Categories') %></h4>
63 66 <ul>
64 67 <li><%= @page.categories.map {|item| link_to_category(item) }.join("</li>\n<li>") %></li>
65 68 </ul>
66 69 </div>
  70 +<% end %>
67 71  
68 72 <h3><%= @comments.size == 0 ? _('No comments yet') : (n_('One comment', '%{comments} comments', @comments.size)) % { :comments => @comments.size} %></h3>
69 73 <%= render :partial => 'comment', :collection => @comments %>
... ...