aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/categories/show.html.erb
blob: 324c0fe661eea0235f1b2fee5ea5f2499358cf63 (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 :stylesheets, stylesheet_link_tag('refinerycms-blog') %>