mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Layout fixes for email template (#40676)
* changes in email footer and ngalert template * more adjustments to labels list
This commit is contained in:
@@ -5,21 +5,21 @@
|
||||
<tr>
|
||||
<td colspan="2" class="annotations">
|
||||
[[ range .Annotations.SortedPairs ]]
|
||||
<p>[[ .Name ]]: [[ .Value ]]</p>
|
||||
<p><span class="annotations-heading">[[ .Name ]]:</span> <span class="annotations-value">[[ .Value ]]</span></p>
|
||||
[[ end ]]
|
||||
</td>
|
||||
</tr>
|
||||
[[ end ]]
|
||||
<tr>
|
||||
<td valign="top" class="labels-heading">Labels:</td>
|
||||
<td>
|
||||
<td colspan="2">
|
||||
<span class="labels-heading">Labels:</span>
|
||||
<ul class="labels-list">
|
||||
[[ range .Labels.SortedPairs ]]<li>[[ .Name ]]: [[ .Value ]]</li>[[ end ]]
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<td colspan="2" class="actions">
|
||||
[[ if .SilenceURL ]]
|
||||
<a
|
||||
href="[[ .SilenceURL ]]"
|
||||
@@ -116,10 +116,24 @@
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
vertical-align: top;
|
||||
display: inline-block;
|
||||
}
|
||||
.annotations-heading {
|
||||
font-weight: bold;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.annotations-value {
|
||||
padding-left: 8px;
|
||||
}
|
||||
.labels-list {
|
||||
font-size: 14px;
|
||||
vertical-align: top;
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
padding-left: 8px;
|
||||
}
|
||||
.actions {
|
||||
padding: 24px 0 12px 0;
|
||||
}
|
||||
.section-heading {
|
||||
color: #2c3235;
|
||||
@@ -132,6 +146,7 @@
|
||||
font-weight: bold;
|
||||
padding: 0 0 0 12px;
|
||||
text-decoration: underline;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.status-tag {
|
||||
color: #ffffff;
|
||||
@@ -213,6 +228,6 @@
|
||||
</table>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
[[ end ]]
|
||||
[[ end ]]
|
||||
|
||||
Reference in New Issue
Block a user