alertmanager/ui/app/partials/alert.html

37 lines
1.4 KiB
HTML
Raw Normal View History

2015-11-06 16:26:06 +00:00
<div class="alert-item" ng-controller="AlertCtrl">
<div class="overview group">
2015-11-16 13:47:03 +00:00
<button class="expand" ng-show="showDetails" ng-click="toggleDetails()" type="primary" small></button>
<button class="expand" ng-hide="showDetails" ng-click="toggleDetails()" type="primary" small>+</button>
<div class="labels left">
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' }}">
{{ name }} = "{{ value }}"
</span>
2015-10-22 09:10:59 +00:00
</span>
</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>
<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-16 13:47:03 +00:00
<button class="silence-button" type="black" ng-click="toggleSilenceForm()" small upper>Silence</button>
2015-11-06 16:26:06 +00:00
</div>
</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>
<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>
</div>