aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/categories/show.html.erb
blob: 3b4a966fa831970f64e1e9ba3816fe7fe1553ae1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<% content_for :body_content_title, @category.title %>

<% content_for :body_content_left do %>
  <% if @category.posts.any? %>
  <article id="blog_posts">
    <%= render :partial => "/blog/shared/post", :collection => @category.posts %>
  </article>
  <% else %>
    <p>
      <%= t('.no_posts') %>
    </p>
  <% end %>
<% end %>

<% content_for :body_content_right do %>
  <%= render :partial => "/blog/shared/categories" %>
<% end %>

<%= render :partial => "/shared/content_page" %>
<% content_for :head, stylesheet_link_tag('refinerycms-blog') %>