aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/shared/_categories.html.erb
blob: 295cae0c181f46f8f6c8e5f3e2b6d6f0bbff2976 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                                                          
                                                                                                          



             
<% if @blog_categories.any? %>
  <h2><%= t('.title') %></h2>
  <ul id='categories'>
    <% @blog_categories.each do |category| %>
      <li<%= " class='selected'" if @category.present? and @category.id == category.id %>>
        <%= link_to "#{category.title} (#{category.post_count})", main_app.blog_category_path(category) %>
      </li>
    <% end %>
  </ul>
<% end %>