aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/shared/_categories.html.erb
blob: 1280cd239f4e2113f7ce08eeb2476c756afa73d9 (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 @blog_category.present? and @blog_category.id == category.id %>>
        <%= link_to "#{category.title} (#{category.post_count})", main_app.blog_category_path(category) %>
      </li>
    <% end %>
  </ul>
<% end %>