aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-05-25 15:21:19 +0200
committerHarald Eilertsen <haraldei@anduin.net>2019-05-25 15:21:19 +0200
commitfd949a1c09d7b834874c37e2e2fd5f5a62479113 (patch)
treebf827c8b1cff493b361ec3d128d774b71f501c48
parent5ba55eaa64c02b3a6195403c44e51a4776d4bc95 (diff)
downloadrefinerycms-pc_banners-fd949a1c09d7b834874c37e2e2fd5f5a62479113.tar.gz
refinerycms-pc_banners-fd949a1c09d7b834874c37e2e2fd5f5a62479113.tar.bz2
refinerycms-pc_banners-fd949a1c09d7b834874c37e2e2fd5f5a62479113.zip
Show banners on all pages regardless of page selection in form.
-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>