Commit 297dde99 authored by Uģis Ozols's avatar Uģis Ozols
Browse files

Use :body and :side_body instead of deprecated :body_content_left and :body_content_right.

parent cae3b3c5
<% content_for :title, "#{t('.news_item_archive_for', :date => l(@archive_date, :format => '%B %Y'))}" %>
<% content_for :body_content_left do %>
<% content_for :body do %>
<h1><%= t('.news_item_archive_for', :date => l(@archive_date, :format => '%B %Y')) %></h1>
<% if @items.any? %>
<section id="news_items">
......
<% content_for :body_content_left do %>
<% content_for :body do %>
<%=raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) unless params[:page] %>
<% if @items.any? %>
......
<% content_for :body_content_title, @item.title %>
<% content_for :body_content_left do %>
<% content_for :body do %>
<article class="news_item">
<p>
<small><%= t('.published') %> <%= l(@item.publish_date, :format => :long) %></small>
......@@ -15,6 +15,6 @@
</p>
</article>
<% end %>
<% content_for :body_content_right, render(:partial => 'recent_posts') %>
<% content_for :side_body, render(:partial => 'recent_posts') %>
<%= render "/refinery/content_page" %>
<% content_for :body_content_right do %>
<% content_for :side_body do %>
<%= yield(:body_content_right_prepend) %>
<%= news_item_archive_widget %>
<%= yield(:body_content_right_append) %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment