From a31d5d24cd5f218e6781d2986e97cb124dfdd52d Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 11 May 2015 18:19:57 +0800 Subject: [PATCH] alt text mods --- app/controllers/ad_banners_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/ad_banners_controller.rb b/app/controllers/ad_banners_controller.rb index 23c14fd..7aef2c3 100644 --- a/app/controllers/ad_banners_controller.rb +++ b/app/controllers/ad_banners_controller.rb @@ -5,7 +5,8 @@ class AdBannersController < ApplicationController image_link = OrbitHelper.is_mobile_view ? b.file.mobile.url : b.file.url klass = i == 0 ? "active" : "" caption = i == 0 ? '
' : "" - title = (b.title.nil? || b.title == "" ? "ad-banner image" : b.title) + alt_title = (b.title.nil? || b.title == "" ? "ad-banner image" : b.title) + if b.link_open == "new_window" target = "_blank" else @@ -15,7 +16,8 @@ class AdBannersController < ApplicationController { "image_link" => image_link, "image_alt" => "ad banner image", - "title" => title, + "title" => b.title, + "alt_title" => alt_title, "class" => klass, "height" => adbanner.height, "width" => adbanner.width,