aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/shared/_categories.html.erb
blob: 05cc53fda6cc0d11bbbff8346740fc65c1f03862 (plain) (blame)
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})", blog_category_url(category) %>
      </li>
    <% end %>
  </ul>
<% end %>