aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/banners/shared/_banners.html.erb
blob: d436cc73e827b2c81080dfc5be85ce2b9d8bae20 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                            
<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 %>
      <%= render :partial => 'refinery/banners/shared/banner_image', :collection => @banners %>
  <% else %>
    <!--todo: insert static images here-->
  <% end %>
</div>