Fix deprecation warnings.
This commit is contained in:
parent
3627b8f865
commit
14cd410324
6 changed files with 10 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
<% content_for :body_content_title, @category.title %>
|
<% content_for :body_content_title, @category.title %>
|
||||||
|
|
||||||
<% content_for :body_content_left do %>
|
<% content_for :body do %>
|
||||||
<% if @posts.any? %>
|
<% if @posts.any? %>
|
||||||
<section id="blog_posts">
|
<section id="blog_posts">
|
||||||
<%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>
|
<%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% content_for :body_content_right do %>
|
<% content_for :side_body do %>
|
||||||
<%= render :partial => "/refinery/blog/shared/categories" %>
|
<%= render :partial => "/refinery/blog/shared/categories" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<% content_for :title, "#{t('.blog_archive_for', :date => @archive_date.strftime('%B %Y'))}" %>
|
<% 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>
|
<h1><%= t('.blog_archive_for', :date => @archive_date.strftime('%B %Y')) %></h1>
|
||||||
<% if @posts.any? %>
|
<% if @posts.any? %>
|
||||||
<section id="blog_posts">
|
<section id="blog_posts">
|
||||||
|
|
|
@ -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? %>
|
<%= raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) if Refinery::Pages.default_parts.any? %>
|
||||||
|
|
||||||
<% if @posts.any? %>
|
<% if @posts.any? %>
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% 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) %>
|
<%= raw @page.content_for(Refinery::Pages.default_parts.second.to_sym) %>
|
||||||
<% end if Refinery::Pages.default_parts.many? -%>
|
<% end if Refinery::Pages.default_parts.many? -%>
|
||||||
<%= render :partial => '/refinery/blog/shared/body_content_right' %>
|
<%= render :partial => '/refinery/blog/shared/body_content_right' %>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<% content_for :body_content_left do %>
|
<% content_for :body do %>
|
||||||
<div id="show_blog_post">
|
<div id="show_blog_post">
|
||||||
<%= render 'post' %>
|
<%= render 'post' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<% content_for :body_content_title, "#{t('.posts_tagged')} “#{@tag_name.titleize}”".html_safe -%>
|
<% content_for :body_content_title, "#{t('.posts_tagged')} “#{@tag_name.titleize}”".html_safe -%>
|
||||||
|
|
||||||
<% content_for :body_content_left do %>
|
<% content_for :body do %>
|
||||||
<% if @posts.any? %>
|
<% if @posts.any? %>
|
||||||
<section id="blog_posts">
|
<section id="blog_posts">
|
||||||
<%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>
|
<%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<% content_for :body_content_right do %>
|
<% content_for :side_body do %>
|
||||||
<%= yield(:body_content_right_prepend) %>
|
<%= yield(:side_body_prepend) %>
|
||||||
<%= render :partial => "/refinery/blog/shared/rss_feed" %>
|
<%= render :partial => "/refinery/blog/shared/rss_feed" %>
|
||||||
<%= render :partial => "/refinery/blog/shared/categories" %>
|
<%= render :partial => "/refinery/blog/shared/categories" %>
|
||||||
<%= render :partial => "/refinery/blog/shared/tags" %>
|
<%= render :partial => "/refinery/blog/shared/tags" %>
|
||||||
<%= render :partial => "/refinery/blog/shared/posts" %>
|
<%= render :partial => "/refinery/blog/shared/posts" %>
|
||||||
<%= blog_archive_widget %>
|
<%= blog_archive_widget %>
|
||||||
<%= yield(:body_content_right_append) %>
|
<%= yield(:side_body_append) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue