Add no-op silencing links.

pull/337/head
Julius Volz 13 years ago committed by Julius Volz
parent d9f403ab7d
commit 481ee4096b
  1. 4
      web/static/css/alerts.css
  2. 4
      web/static/js/alerts.js
  3. 3
      web/templates/alerts.html

@ -6,6 +6,10 @@
display: none;
}
.silence_children_link {
margin-left: 5px;
}
.alert_rule {
padding: 5px;
color: #333;

@ -9,6 +9,10 @@ function init() {
}
$(this).next().toggle();
});
$(".silence_alert_link, .silence_children_link").click(function() {
alert("Silencing is not yet supported.");
});
}
$(init);

@ -18,6 +18,7 @@
<td>
<div class="alert_description">
<span class="label alert_rule">{{.HTMLSnippet}}</span>
<a href="#" class="silence_children_link">Silence All Children&hellip;</a>
</div>
{{if $activeAlerts}}
<table class="table table-bordered table-hover table-condensed alert_elements_table">
@ -26,6 +27,7 @@
<th>State</th>
<th>Active Since</th>
<th>Value</th>
<th>Silence</th>
</tr>
{{range $activeAlerts}}
<tr class="{{index $alertStateToRowClass .State}}">
@ -33,6 +35,7 @@
<td>{{.State}}</td>
<td>{{.ActiveSince}}</td>
<td>{{.Value}}</td>
<td><a href="#" class="silence_alert_link">Silence&hellip;</button><td>
</tr>
{{end}}
</table>

Loading…
Cancel
Save