alertmanager/ui/app/partials/alerts.html
Fabian Reinartz 12585e91c0 Sync alert filtering with URL.
This commit keeps the alert filters synchronized with URL search parameters
so they can be shared.
2015-11-25 12:43:40 +01:00

28 lines
874 B
HTML

<form id="filter-alerts" method="post" action="" class="forms">
<fieldset>
<legend>Filter</legend>
<label>Receivers</label>
<select name="select-multi" class="width-2" ng-model="receivers" multiple="multiple"
ng-options="r for r in allReceivers track by r">
</select>
</fieldset>
</form>
<div id="alert-groups">
<div class="alert-group" ng-repeat="group in groups | filter:notEmpty">
<div class="alert-group-header group">
<span ng-repeat="(ln, lv) in group.labels" class="lbl {{ ln == 'alertname' ? 'lbl-highlight' : '' }}">
{{ ln }} = '{{ lv }}'
</span>
</div>
<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">
<alert class="list-item" alert="a" group="group.labels"></alert>
</div>
</div>
</div>
</div>
</div>