Add no-op silencing links.

pull/337/head
Julius Volz 2013-07-24 12:23:35 +02:00 committed by Julius Volz
parent d9f403ab7d
commit 481ee4096b
3 changed files with 11 additions and 0 deletions

View File

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

View File

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

View File

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