We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4df312c + b5a3419 commit 5daf03aCopy full SHA for 5daf03a
1 file changed
promgen/templates/promgen/alert_detail.html
@@ -1,6 +1,7 @@
1
{% extends "base.html" %}
2
{% load promgen %}
3
{% load tz %}
4
+{% load i18n %}
5
{% block content %}
6
{% breadcrumb alert %}
7
@@ -62,6 +63,7 @@ <h2>Alerts</h2>
62
63
<th>Start Time</th>
64
<th>Labels</th>
65
<th>Link</th>
66
+ <th>Action</th>
67
</tr>
68
{% for alert in data.alerts %}
69
<tr>
@@ -74,6 +76,11 @@ <h2>Alerts</h2>
74
76
</ul>
75
77
</td>
78
<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>
84
85
{% endfor %}
86
</table>
0 commit comments