alertmanager/ui/app/partials/alert.html

74 lines
2.2 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">
<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">
<span ng-hide="hiddenLabels.indexOf(name) >= 0" class="lbl {{ name == 'alertname' ? 'lbl-highlight' : '' }}" 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-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>
</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-06 16:26:06 +00:00
<table class="table-flat">
<tbody>
<tr>
<td>active</td>
<td>
2015-11-09 10:09:32 +00:00
<span>{{ alert.startsAt | date:'yyyy-MM-dd HH:mm' }}</span>
2015-11-06 16:26:06 +00:00
<span ng-hide="a.endsAt == '0001-01-01T00:00:00Z'">
2015-11-09 10:09:32 +00:00
<span class="date">{{ alert.endsAt | date:'yyyy-MM-dd' }},</span> <span class="time">{{ alert.endsAt | date:'HH:mm' }}</span>
2015-11-06 16:26:06 +00:00
</span>
2015-11-09 10:09:32 +00:00
<span ng-show="alert.endsAt == '0001-01-01T00:00:00Z'">
2015-11-06 16:26:06 +00:00
<span class="time">now</span>
</span>
</td>
</tr>
<tr>
<td>annotations</td>
<td>
<table class="table-flat">
<tbody>
2015-11-09 10:09:32 +00:00
<tr ng-repeat="(name, val) in alert.annotations | orderBy:name">
2015-11-06 16:26:06 +00:00
<td style="padding-right: 3em"><em>{{ name }}</em></td>
<td style="white-space: pre-line;">{{ val }}</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!-- <div class="container-right group">
<div class="right">
<button type="secondary" ng-click="toggleSilenceForm()" small>Silence</button>
2015-11-02 17:51:54 +00:00
</div>
<div class="left">
<silence-form ng-show="showSilenceForm" silence="silence"></silence-form>
2015-11-02 17:51:54 +00:00
Details: <input class="collapse" ng-class="{open:collapse}" type="checkbox" ng-model="collapse"></input>
<div class="left" ng-show="collapse">
<table class="table-flat">
<tbody>
<tr ng-repeat="(name, val) in a.annotations | orderBy:name">
<td style="padding-right: 3em"><em>{{ name }}</em></td>
<td style="white-space: pre-line;">{{ val }}</td>
</tr>
</tbody>
</table>
</div>
</div>
2015-11-06 16:26:06 +00:00
</div> -->
</div>