From f10ebba89d203e6bf2701af1b4ac5f5b8e0b3890 Mon Sep 17 00:00:00 2001 From: Ben Chess Date: Mon, 23 Jul 2018 14:06:46 +0200 Subject: [PATCH] Email is green if only none firing (#1475) Signed-off-by: Benjamin Chess --- template/email.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/email.html b/template/email.html index 52b6b2f4..1f15ab8b 100644 --- a/template/email.html +++ b/template/email.html @@ -323,7 +323,11 @@ a {
+ {{ if gt (len .Alerts.Firing) 0 }}
+ {{ else }} + + {{ end }} {{ .Alerts | len }} alert{{ if gt (len .Alerts) 1 }}s{{ end }} for {{ range .GroupLabels.SortedPairs }} {{ .Name }}={{ .Value }} {{ end }}