gitlab-org--gitlab-foss/app/helpers/broadcast_messages_helper.rb

10 lines
252 B
Ruby
Raw Normal View History

module BroadcastMessagesHelper
def broadcast_styling(broadcast_message)
if(broadcast_message.color || broadcast_message.font)
"background-color:#{broadcast_message.color};color:#{broadcast_message.font}"
else
""
end
end
end