- <% unless sidebar.categories.blank? -%>
- <h3><%= _("Categories")%></h3>
- <ul id="categories">
- <% for category in sidebar.categories -%>
- <% unless sidebar.empty.blank? and category.article_counter == 0 %>
- <li><%= link_to h(category.name), category_url(category) %> <% if sidebar.count %><em>(<%= category.article_counter %>)</em><% end %></li>
- <% end %>
- <% end -%>
- </ul>
- <% end %>