I'm passing to a template an Event
object and what I need to do is checking @event.getSeverity
value. if the value is positive, I want to color a specific <div>
in green. if the value is negative I want to color a specific <div>
in red.
I couldn't find a way to define a variable. is it possible? it should be I think.
anyhow, what's the simplest way accomplishing this?
thanks