Email is green if only none firing (#1475)
Signed-off-by: Benjamin Chess <bchess@gmail.com>
This commit is contained in:
parent
2d3385f9dd
commit
f10ebba89d
|
@ -323,7 +323,11 @@ a {
|
|||
<div class="content">
|
||||
<table class="main" width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
{{ if gt (len .Alerts.Firing) 0 }}
|
||||
<td class="alert alert-warning">
|
||||
{{ else }}
|
||||
<td class="alert alert-good">
|
||||
{{ end }}
|
||||
{{ .Alerts | len }} alert{{ if gt (len .Alerts) 1 }}s{{ end }} for {{ range .GroupLabels.SortedPairs }}
|
||||
{{ .Name }}={{ .Value }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue