% content_for :body_content_title, @blog_post.title %>
<% content_for :body_content_left do %>
<%= t('blog.shared.posts.created_at', :when => @blog_post.created_at.strftime('%d %B %Y')) %>.
<% if (categories = @blog_post.categories).any? %>
<%= t('.filed_in') %>
<% categories.each_with_index do |category, index| %>
<%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %>
<% end %>
<% end %>
<%= @blog_post.body %>
<% if BlogPost.comments_allowed? %>
<%= t('.comments.title') %>
<% if (comments = @blog_post.comments.approved).any? %>
<%= render :partial => "comment", :collection => comments %>
<% else %>
<%= t('blog.shared.comments.none') %>.
<% end %>
<% flash.each do |key, value| %>
<%= value %>
<% end %>
<%= t('.comments.add') %>
<% form_for [:blog_post, @blog_comment] do |f| %>
<% if Rails.version < '3.0.0'%>
<%= f.error_messages %>
<% else %>
<%= render :partial => "/shared/admin/error_messages",
:locals => {
:object => f.object,
:include_object_name => true
} %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label :message %>
<%= f.text_area :message, :rows => 6 %>
<%= f.submit t('.submit') %>
<% end %>
<% end %>
<% end %>
<% content_for :body_content_right do %>
<%= render :partial => "/blog/shared/categories" %>
<%= render :partial => "/blog/shared/posts" %>
<% end %>
<%= render :partial => "/shared/content_page" %>
<% content_for :head, stylesheet_link_tag('refinerycms-blog') %>