From 636b51d080b184e8b4ac7a6f99f6c1cdcffc2115 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 27 Apr 2015 15:59:11 +0800 Subject: [PATCH] caption display for banner --- app/controllers/ad_banners_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ad_banners_controller.rb b/app/controllers/ad_banners_controller.rb index ec5f971..2b206da 100644 --- a/app/controllers/ad_banners_controller.rb +++ b/app/controllers/ad_banners_controller.rb @@ -45,9 +45,9 @@ class AdBannersController < ApplicationController caption = i == 0 ? '
' : "" klass = i == 0 ? "active" : "" if ad_b.exchange_item == "1" - image_html = "
" + image_html = "
#{ad_b.title}
" else ad_b.exchange_item == "2" - image_html = "
#{ad_b.title}
" + image_html = "
#{ad_b.title}
#{ad_b.title}
" end { "html" => image_html