2015-11-09 15:42:52 +00:00
|
|
|
<fieldset id="silence-create">
|
|
|
|
<legend>Filter</legend>
|
2015-11-10 12:47:04 +00:00
|
|
|
<select class="select" ng-model="receivers" multiple>
|
|
|
|
<option ng-repeat="dest in allReceivers" value="{{ dest }}">{{ dest }}</option>
|
2015-11-09 10:09:32 +00:00
|
|
|
</select>
|
2015-11-09 15:42:52 +00:00
|
|
|
</fieldset>
|
2015-11-09 10:09:32 +00:00
|
|
|
|
2015-11-07 13:29:54 +00:00
|
|
|
<div id="alert-groups" ng-controller="AlertsCtrl">
|
2015-11-09 15:42:52 +00:00
|
|
|
<div class="alert-group" ng-repeat="group in groups | filter:notEmpty">
|
2015-11-09 10:09:32 +00:00
|
|
|
<div class="alert-group-header group">
|
2015-11-09 11:33:14 +00:00
|
|
|
<span ng-repeat="(ln, lv) in group.labels" class="lbl {{ ln == 'alertname' ? 'lbl-highlight' : '' }}">
|
2015-11-09 10:09:32 +00:00
|
|
|
{{ ln }} = '{{ lv }}'
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2015-11-10 13:52:04 +00:00
|
|
|
<div ng-repeat="blk in group.blocks">
|
|
|
|
<div ng-show="receivers.indexOf(blk.routeOpts.receiver) >= 0" ng-show"blk.alerts">
|
|
|
|
<div ng-repeat="a in blk.alerts">
|
2015-11-09 11:03:36 +00:00
|
|
|
<alert class="list-item" alert="a" group="group.labels"></alert>
|
2015-11-07 13:29:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|