aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-12-13 11:02:29 +1300
committerPhilip Arndt <parndt@gmail.com>2010-12-13 11:02:29 +1300
commit2a0dc92538e610b7821eda3487d9e1bf3fac64f2 (patch)
treee8402dd13a727d1d56247b57399ab3619de080e8 /app/views/blog
parent170753fbd7d107f53fe6203b4111449f03032a9a (diff)
downloadrefinerycms-blog-2a0dc92538e610b7821eda3487d9e1bf3fac64f2.tar.gz
refinerycms-blog-2a0dc92538e610b7821eda3487d9e1bf3fac64f2.tar.bz2
refinerycms-blog-2a0dc92538e610b7821eda3487d9e1bf3fac64f2.zip
Make the body content work when there are not this many parts.
Diffstat (limited to 'app/views/blog')
-rw-r--r--app/views/blog/posts/index.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/blog/posts/index.html.erb b/app/views/blog/posts/index.html.erb
index a9c3fde..766d689 100644
--- a/app/views/blog/posts/index.html.erb
+++ b/app/views/blog/posts/index.html.erb
@@ -1,5 +1,5 @@
<% content_for :body_content_left do %>
- <%= @page[Page.default_parts.first.to_sym].html_safe %>
+ <%= @page[Page.default_parts.first.to_sym].html_safe if Page.default_parts.any? %>
<% if @blog_posts.any? %>
<section id="blog_posts">
@@ -11,7 +11,7 @@
<% end %>
<% content_for :body_content_right do %>
- <%= @page[Page.default_parts.second.to_sym].html_safe %>
+ <%= @page[Page.default_parts.second.to_sym].html_safe if Page.default_parts.many? %>
<%= render :partial => "/blog/shared/categories" %>
<%= render :partial => "/blog/shared/rss_feed" %>