From 8c68c54a57b4d862b2f8114170f4198332f6711f Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 13 Sep 2013 12:36:41 +0800 Subject: [PATCH] ad_banner banner load fixed for test site Conflicts: app/views/front/show_banner.html.erb --- app/views/front/show_banner.html.erb | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/app/views/front/show_banner.html.erb b/app/views/front/show_banner.html.erb index 491dbe729..c35dd3647 100644 --- a/app/views/front/show_banner.html.erb +++ b/app/views/front/show_banner.html.erb @@ -1,5 +1,16 @@ - + +
+ +
+ <% (images = @ad_banner.ad_images).shuffle.each do |ad_image| %> + <% if ad_image.display? %> + <%= ad_image.title || ' title='<%= ad_image.title || ' ' %>' time_to_next='<%= @ad_banner.transition_msec %>' link_open='<%= ad_image.link_open %>' link_url='<%= ad_image_link(ad_image) %>' style=' <%= 'cursor:pointer;' if !ad_image_link(ad_image).blank? %>'/> + <% end %> + <% end %> +
+
- -
- -
- <% (images = @ad_banner.ad_images).shuffle.each do |ad_image| %> - <% if ad_image.display? %> - <%= ad_image.title || ' title='<%= ad_image.title || ' ' %>' time_to_next='<%= @ad_banner.transition_msec %>' link_open='<%= ad_image.link_open %>' link_url='<%= ad_image_link(ad_image) %>' style=' <%= 'cursor:pointer;' if !ad_image_link(ad_image).blank? %>'/> - <% end %> - <% end %> -
-
\ No newline at end of file