aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/banners/shared
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/banners/shared')
-rw-r--r--app/views/refinery/banners/shared/_banners.html.erb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/refinery/banners/shared/_banners.html.erb b/app/views/refinery/banners/shared/_banners.html.erb
index d436cc7..4198998 100644
--- a/app/views/refinery/banners/shared/_banners.html.erb
+++ b/app/views/refinery/banners/shared/_banners.html.erb
@@ -1,9 +1,7 @@
<div id="slider">
- <% if @page.present? and @page.banners.published.present? %>
- <%= render :partial => 'refinery/banners/shared/banner_image', :collection => @page.banners.published %>
- <% elsif @banners.present? then %>
+ <% if @banners.present? then %>
<%= render :partial => 'refinery/banners/shared/banner_image', :collection => @banners %>
<% else %>
<!--todo: insert static images here-->
<% end %>
-</div> \ No newline at end of file
+</div>