broadcast_messages_helper.rb 252 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
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