Skip to content

Commit

Permalink
Merge pull request #3166 from simonpasquier/fix-3096
Browse files Browse the repository at this point in the history
Fix email template for resolved notifications
  • Loading branch information
simonpasquier committed Dec 9, 2022
2 parents 9ae6113 + b29629f commit 3a7d064
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions asset/assets_vfsdata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion template/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,17 @@
<tr>
{{ if gt (len .Alerts.Firing) 0 }}
<td class="alert alert-warning">
{{ .Alerts | len }} alert{{ if gt (len .Alerts) 1 }}s{{ end }} for {{ range .GroupLabels.SortedPairs }}
{{ .Name }}={{ .Value }}
{{ end }}
</td>
{{ else }}
<td class="alert alert-good">
{{ end }}
{{ .Alerts | len }} alert{{ if gt (len .Alerts) 1 }}s{{ end }} for {{ range .GroupLabels.SortedPairs }}
{{ .Name }}={{ .Value }}
{{ end }}
</td>
{{ end }}
</tr>
<tr>
<td class="content-wrap">
Expand Down

0 comments on commit 3a7d064

Please sign in to comment.