gitlab-org--gitlab-foss/app/helpers/broadcast_messages_helper.rb
2013-12-18 17:43:45 -05:00

9 lines
252 B
Ruby

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