aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-12-17 17:43:09 +1300
committerPhilip Arndt <parndt@gmail.com>2011-12-17 17:43:09 +1300
commitde5c02994c58079b3fd723616d5751f5a5a97748 (patch)
tree8c96fa719855b46d3e9dad2afe8e825df650894b
parent9a8d38ad789e6644bcd99b818b0ea7f561d080c0 (diff)
downloadrefinerycms-blog-de5c02994c58079b3fd723616d5751f5a5a97748.tar.gz
refinerycms-blog-de5c02994c58079b3fd723616d5751f5a5a97748.tar.bz2
refinerycms-blog-de5c02994c58079b3fd723616d5751f5a5a97748.zip
Use Refinery::Page APIs (content_for) properly.
-rw-r--r--app/views/refinery/blog/posts/index.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/refinery/blog/posts/index.html.erb b/app/views/refinery/blog/posts/index.html.erb
index 4eef04f..a83d94f 100644
--- a/app/views/refinery/blog/posts/index.html.erb
+++ b/app/views/refinery/blog/posts/index.html.erb
@@ -1,5 +1,5 @@
<% content_for :body_content_left do %>
- <%=raw @page[::Refinery::Page.default_parts.first.to_sym] if ::Refinery::Page.default_parts.any? %>
+ <%= raw @page.content_for(::Refinery::Page.default_parts.first.to_sym) if ::Refinery::Page.default_parts.any? %>
<% if @blog_posts.any? %>
<section id="blog_posts">
@@ -12,8 +12,8 @@
<% end %>
<% content_for :body_content_right_prepend do -%>
- <%= raw @page[::Refinery::Page.default_parts.second.to_sym] if ::Refinery::Page.default_parts.many? %>
-<% end -%>
+ <%= raw @page.content_for(::Refinery::Page.default_parts.second.to_sym) %>
+<% end if ::Refinery::Page.default_parts.many? -%>
<%= render :partial => '/refinery/blog/shared/body_content_right' %>
<%= render :partial => "/refinery/content_page" %>