mirror of
https://github.com/grafana/grafana.git
synced 2025-01-24 15:27:01 -06:00
Alerting: Do not show grouping when grouplabels are empty in email template (#74090)
This commit is contained in:
parent
29ea0886e3
commit
42a4bad0f0
@ -8,9 +8,9 @@
|
||||
<h2>📁 {{ .GroupLabels.grafana_folder }} › {{ .GroupLabels.alertname }}</h2>
|
||||
</mj-text>
|
||||
<mj-raw>
|
||||
{{ else }}
|
||||
{{ else if gt (len .GroupLabels.SortedPairs) 0 }}
|
||||
</mj-raw>
|
||||
<!-- non-default grouping labels are just printed verbatim -->
|
||||
<!-- non-default grouping labels are just printed verbatim, if we are grouping at all -->
|
||||
<mj-text padding="0" align="left">
|
||||
<h2>
|
||||
📁 Grouped by
|
||||
|
@ -193,7 +193,7 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{ else }}
|
||||
{{ else if gt (len .GroupLabels.SortedPairs) 0 }}
|
||||
<tr>
|
||||
<td align="left" class="txt" style="font-size:0px;padding:0;word-break:break-word;">
|
||||
<div style="font-family: Inter, Helvetica, Arial; font-size: 13px; line-height: 150%; text-align: left; color: #000000;">
|
||||
|
Loading…
Reference in New Issue
Block a user