Update text_marquees_controller.rb
This commit is contained in:
parent
7d7aef4b5a
commit
98b99dddbd
|
@ -7,7 +7,7 @@ class TextMarqueesController < ApplicationController
|
||||||
"text" => mqt.title,
|
"text" => mqt.title,
|
||||||
"speed" => mqt.speed,
|
"speed" => mqt.speed,
|
||||||
"url" => (mqt.url || ""),
|
"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
|
end
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue