fixed deprecation warnings

This commit is contained in:
Philip Arndt 2012-05-15 12:22:31 +12:00
parent 940046daf6
commit 6359997b05
6 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
<% content_for :body_content_title, @category.title %>
<% content_for :body_content_left do %>
<% content_for :body do %>
<% if @posts.any? %>
<section id="blog_posts">
<%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>
@ -13,7 +13,7 @@
<% end %>
<% end %>
<% content_for :body_content_right do %>
<% content_for :side_body do %>
<%= render :partial => "/refinery/blog/shared/categories" %>
<% end %>

View file

@ -1,6 +1,6 @@
<% content_for :title, "#{t('.blog_archive_for', :date => @archive_date.strftime('%B %Y'))}" %>
<% content_for :body_content_left do %>
<% content_for :body do %>
<h1><%= t('.blog_archive_for', :date => @archive_date.strftime('%B %Y')) %></h1>
<% if @posts.any? %>
<section id="blog_posts">

View file

@ -1,4 +1,4 @@
<% content_for :body_content_left do %>
<% content_for :body do %>
<%= raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) if Refinery::Pages.default_parts.any? %>
<% if @posts.any? %>

View file

@ -1,4 +1,4 @@
<% content_for :body_content_left do %>
<% content_for :body do %>
<div id="show_blog_post">
<%= render 'post' %>
</div>

View file

@ -2,7 +2,7 @@
<% content_for :body_content_title, "#{t('.posts_tagged')} &#8220;#{@tag_name.titleize}&#8221;".html_safe -%>
<% content_for :body_content_left do %>
<% content_for :body do %>
<% if @posts.any? %>
<section id="blog_posts">
<%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>

View file

@ -1,4 +1,4 @@
<% content_for :body_content_right do %>
<% content_for :side_body do %>
<%= yield(:body_content_right_prepend) %>
<%= render :partial => "/refinery/blog/shared/rss_feed" %>
<%= render :partial => "/refinery/blog/shared/categories" %>