From fd949a1c09d7b834874c37e2e2fd5f5a62479113 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 25 May 2019 15:21:19 +0200 Subject: Show banners on all pages regardless of page selection in form. --- app/views/refinery/banners/shared/_banners.html.erb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/views/refinery/banners/shared/_banners.html.erb') 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 @@
- <% 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 %> <% end %> -
\ No newline at end of file + -- cgit v1.2.3