aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/categories/show.html.erb
blob: bd9f8631bfd090ecd542ac2b3180128d01d811b3 (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? %>
  <ul id="blog_posts">
    <%= render :partial => "/blog/shared/post", :collection => @category.posts %>
  </ul>
  <% 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') %>