Fix deprecation warnings.

This commit is contained in:
Uģis Ozols 2012-04-10 23:02:41 +03:00
parent 3627b8f865
commit 14cd410324
6 changed files with 10 additions and 10 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? %>
@ -11,7 +11,7 @@
<% end %>
<% end %>
<% content_for :body_content_right_prepend do -%>
<% content_for :side_body_prepend do -%>
<%= raw @page.content_for(Refinery::Pages.default_parts.second.to_sym) %>
<% end if Refinery::Pages.default_parts.many? -%>
<%= render :partial => '/refinery/blog/shared/body_content_right' %>

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,9 +1,9 @@
<% content_for :body_content_right do %>
<%= yield(:body_content_right_prepend) %>
<% content_for :side_body do %>
<%= yield(:side_body_prepend) %>
<%= render :partial => "/refinery/blog/shared/rss_feed" %>
<%= render :partial => "/refinery/blog/shared/categories" %>
<%= render :partial => "/refinery/blog/shared/tags" %>
<%= render :partial => "/refinery/blog/shared/posts" %>
<%= blog_archive_widget %>
<%= yield(:body_content_right_append) %>
<%= yield(:side_body_append) %>
<% end %>