Skip to content

Commit 5daf03a

Browse files
[IMPROVEMENT] Facilitate creating silences from past alerts #717
2 parents 4df312c + b5a3419 commit 5daf03a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

promgen/templates/promgen/alert_detail.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% extends "base.html" %}
22
{% load promgen %}
33
{% load tz %}
4+
{% load i18n %}
45
{% block content %}
56
{% breadcrumb alert %}
67

@@ -62,6 +63,7 @@ <h2>Alerts</h2>
6263
<th>Start Time</th>
6364
<th>Labels</th>
6465
<th>Link</th>
66+
<th>Action</th>
6567
</tr>
6668
{% for alert in data.alerts %}
6769
<tr>
@@ -74,6 +76,11 @@ <h2>Alerts</h2>
7476
</ul>
7577
</td>
7678
<td v-pre>{{alert.generatorURL|urlizetrunc:100}}</td>
79+
<td>
80+
<a @click="setSilenceLabels({{alert.labels}})" class="btn btn-warning btn-xs">
81+
{% trans "Silence" %}
82+
</a>
83+
</td>
7784
</tr>
7885
{% endfor %}
7986
</table>

0 commit comments

Comments
 (0)