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 << "