2015-11-06 16:26:06 +00:00
|
|
|
<div class="alert-item" ng-controller="AlertCtrl">
|
2015-11-06 17:17:41 +00:00
|
|
|
<div class="overview group">
|
|
|
|
<div class="labels left" ng-click="toggleDetails()">
|
2015-11-09 10:09:32 +00:00
|
|
|
<span ng-repeat="(name, value) in alert.labels | orderBy:name">
|
2015-11-09 11:33:14 +00:00
|
|
|
<span ng-hide="group[name]" class="lbl {{ name == 'alertname' ? 'lbl-highlight' : 'lbl-outline' }}">
|
2015-11-06 17:17:41 +00:00
|
|
|
{{ name }} = '{{ value }}'
|
|
|
|
</span>
|
2015-10-22 09:10:59 +00:00
|
|
|
</span>
|
2015-11-06 17:17:41 +00:00
|
|
|
</div>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
|
|
|
<div class="right">
|
2015-11-09 13:41:06 +00:00
|
|
|
<div ng-show="alert.inhibited" class="left lbl muted-lbl">inhibited</div>
|
2015-11-09 15:42:52 +00:00
|
|
|
<div ng-show="alert.silenced" class="left lbl muted-lbl"><a ng-href="/#/silences?hl={{ alert.silenced }}">silenced</a></div>
|
2015-11-09 13:41:06 +00:00
|
|
|
|
2015-11-09 11:03:36 +00:00
|
|
|
<button type="black" disabled small>Since {{ alert.startsAt | amCalendar }}</button>
|
2015-11-06 16:35:37 +00:00
|
|
|
<button class="silence-button" type="secondary" ng-click="toggleSilenceForm()" small upper>Silence</button>
|
2015-11-06 16:26:06 +00:00
|
|
|
</div>
|
2015-10-21 14:34:38 +00:00
|
|
|
</div>
|
2015-11-06 16:26:06 +00:00
|
|
|
|
2015-11-06 16:35:37 +00:00
|
|
|
<div class="silence-alert" ng-show="showSilenceForm">
|
|
|
|
<silence-form silence="silence"></silence-form>
|
2015-11-06 16:26:06 +00:00
|
|
|
</div>
|
|
|
|
|
2015-11-06 17:17:41 +00:00
|
|
|
<div class="detail group" ng-show="showDetails">
|
2015-11-09 12:32:41 +00:00
|
|
|
<table class="table-normal annotations">
|
2015-11-06 16:26:06 +00:00
|
|
|
<tbody>
|
2015-11-09 12:32:41 +00:00
|
|
|
<tr ng-repeat="(name, val) in alert.annotations | orderBy:name">
|
|
|
|
<td><strong>{{ name }}</strong></td>
|
|
|
|
<td><span ng-bind-html="val | linky:'_blank'"></span></td>
|
2015-11-06 16:26:06 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-10-21 14:34:38 +00:00
|
|
|
</div>
|