## last updated:
9
/
1
/
08
by: othomas
## This macro takes one parameter, severity, of the form green, yellow, or red to
## indicate the severity or impact of a current event or outage, by
## changing its border and title background colors accordingly. The
##
default
color is green. If the body is empty, it will display the
## general section from 3down. Ideally, it would figure out whether there
## is content in that section, and maybe pick up a color tag from it.
#
if
($paramseverity ==
"red"
)
#set($titleBGColor=
"#FFECEA"
)
#set($borderColor =
"#FF9966"
)
#elseif($paramseverity ==
"yellow"
)
#set($titleBGColor=
"#FFFFEA"
)
#set($borderColor =
"#FFFF66"
)
#
else
#set($titleBGColor=
"#ECFFEA"
)
#set($borderColor =
"#99EC66"
)
#end
#
if
($body)
{panel:title=Current|borderStyle=solid|borderColor=$borderColor|titleBGColor=$titleBGColor|bgColor=#ffffff}
$body
#
else
{panel:title=3down|borderStyle=solid|borderColor=$borderColor|titleBGColor=$titleBGColor|bgColor=#ffffff}
{rss:url=http:
{menulink:custom|target=_blank|link=http:
#end
{panel}
{panel}