sneakin-refinerycms-news 0.9.7.1 → 0.9.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/news_items/index.html.erb +2 -2
- metadata +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
<% content_for :body_content_left do %>
|
2
|
-
<%= @page[:body] %>
|
2
|
+
<%= @page[:body] if @news_items.offset == 0 %>
|
3
3
|
|
4
4
|
<% if @news_items.any? %>
|
5
5
|
<% @news_items.each do |item| %>
|
@@ -14,5 +14,5 @@
|
|
14
14
|
<p><em>Sorry we haven't posted up any news yet.</em></p>
|
15
15
|
<% end %>
|
16
16
|
<% end %>
|
17
|
-
|
17
|
+
<% content_for :body_content_right, " " if @news_items.offset > 0 -%>
|
18
18
|
<%= render :partial => "/shared/content_page" %>
|