Update text_marquees_controller.rb

This commit is contained in:
chiu 2019-09-05 17:52:42 +08:00
parent 7d7aef4b5a
commit 98b99dddbd
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class TextMarqueesController < ApplicationController
"text" => mqt.title,
"speed" => mqt.speed,
"url" => (mqt.url || ""),
"content" => (mqt.url.nil? ? "<a speed='#{mqt.speed}'>#{mqt.title}</a>" : "<a href='#{mqt.url}' target='_blank' speed='#{mqt.speed}'>#{mqt.title}</a>")
"content" => (mqt.url.to_s.empty? ? "<a speed='#{mqt.speed}'>#{mqt.title}</a>" : "<a href='#{mqt.url}' target='_blank' speed='#{mqt.speed}'>#{mqt.title}</a>")
}
end
{