From 1d32552b5193e71fa17e7188766f63a965f8f6bf Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 19 Oct 2013 19:54:37 +0800 Subject: [PATCH] Add missing effect to banner --- app/views/front/show_banner.html.erb | 2 +- app/views/mobile/index.mobile.erb | 2 +- lib/parsers/parser_common.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/front/show_banner.html.erb b/app/views/front/show_banner.html.erb index acec13da..11017d44 100644 --- a/app/views/front/show_banner.html.erb +++ b/app/views/front/show_banner.html.erb @@ -1,5 +1,5 @@
-
+
<% @ad_banner.ad_images.can_display.each do |ad_image| %> <% link = ad_image_link(ad_image) %> <%= image_tag ad_image.file, width: @ad_banner.width, height: @ad_banner.height, link_open: ad_image.link_open, link_url: link, style: "display:none; #{'cursor:pointer;' if link.present?}" %> diff --git a/app/views/mobile/index.mobile.erb b/app/views/mobile/index.mobile.erb index b1ca6d79..c0dcab98 100644 --- a/app/views/mobile/index.mobile.erb +++ b/app/views/mobile/index.mobile.erb @@ -1,4 +1,4 @@ -
+
<% @ad_banner.ad_images.can_display.each do |image| %> <%= image_tag image.file.url, width: @ad_banner.width, height: @ad_banner.height %> <% end %> diff --git a/lib/parsers/parser_common.rb b/lib/parsers/parser_common.rb index 2e84a888..dfa88454 100644 --- a/lib/parsers/parser_common.rb +++ b/lib/parsers/parser_common.rb @@ -47,7 +47,7 @@ module ParserCommon if ad_banner res << "
" res << "" - res << "
" + res << "
" ad_banner.ad_images.can_display.each do |ad_image| link = ad_image_link(ad_image) res << "