aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/shared/_categories.html.erb
blob: 64f4ee6cd9522dae237bd4d6c4e4a5a46a28701b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
<% if @categories.any? %>
  <h2><%= t('.title') %></h2>
  <ul id='categories'>
    <% @categories.each do |category| %>
      <li<%= " class='selected'" if @category.present? and @category.id == category.id %>>
        <%= link_to "#{category.title} (#{category.post_count})", refinery.blog_category_path(category) %>
      </li>
    <% end %>
  </ul>
<% end %>