diff --git a/emails/templates/ng_alert_notification.txt b/emails/templates/ng_alert_notification.txt index 7bc954243c8..0848d168041 100644 --- a/emails/templates/ng_alert_notification.txt +++ b/emails/templates/ng_alert_notification.txt @@ -7,7 +7,7 @@ You have [[ len .Alerts.Firing ]] firing alert(s), and [[ len .Alerts.Resolved ] [[ template "__default_alerts_summarize" .Alerts.Firing ]] [[- end ]] -[[ if .Alerts.Resolved -]] +[[- if .Alerts.Resolved ]] ([[ len .Alerts.Resolved ]]) RESOLVED ------------- [[ template "__default_alerts_summarize" .Alerts.Resolved ]] @@ -51,12 +51,12 @@ Annotations: [[ template "__default_sorted_pairs" $annotations ]] [[- define "__default_sorted_pairs" -]] [[ range .SortedPairs ]] - [[ .Name ]] = [[ .Value ]] + - [[ .Name ]] = [[ .Value ]] [[- end ]] [[- end -]] [[- if .Message -]] [[ .Message ]] -[[ else -]] +[[- else -]] [[ template "__default_message" . ]] [[- end ]] diff --git a/public/emails/ng_alert_notification.txt b/public/emails/ng_alert_notification.txt index 7334f08f5e8..7db5996f3db 100644 --- a/public/emails/ng_alert_notification.txt +++ b/public/emails/ng_alert_notification.txt @@ -7,7 +7,7 @@ You have {{ len .Alerts.Firing }} firing alert(s), and {{ len .Alerts.Resolved } {{ template "__default_alerts_summarize" .Alerts.Firing }} {{- end }} -{{ if .Alerts.Resolved -}} +{{- if .Alerts.Resolved }} ({{ len .Alerts.Resolved }}) RESOLVED ------------- {{ template "__default_alerts_summarize" .Alerts.Resolved }} @@ -51,13 +51,13 @@ Annotations: {{ template "__default_sorted_pairs" $annotations }} {{- define "__default_sorted_pairs" -}} {{ range .SortedPairs }} - {{ .Name }} = {{ .Value }} + - {{ .Name }} = {{ .Value }} {{- end }} {{- end -}} {{- if .Message -}} {{ .Message }} -{{ else -}} +{{- else -}} {{ template "__default_message" . }} {{- end }}