2015-11-10 13:55:57 +00:00
|
|
|
|
<div class="silence-item {{ highlight ? 'highlight' : ''}}" ng-controller="SilenceCtrl">
|
2015-11-06 17:17:41 +00:00
|
|
|
|
<div class="overview group">
|
2015-11-16 13:47:03 +00:00
|
|
|
|
<button type="primary" class="expand" ng-show="showDetails" ng-click="toggleDetails()" small>–</button>
|
|
|
|
|
<button type="primary" class="expand" ng-hide="showDetails" ng-click="toggleDetails()" small>+</button>
|
2015-11-10 13:55:57 +00:00
|
|
|
|
|
|
|
|
|
<div class="labels left">
|
2015-11-06 17:17:41 +00:00
|
|
|
|
<span ng-repeat="m in sil.matchers | orderBy:name">
|
|
|
|
|
<span class="lbl {{ m.name == 'alertname' ? 'lbl-highlight' : '' }}">
|
|
|
|
|
{{ m.name }} =<span ng-show="m.isRegex">~</span> '{{ m.value }}'
|
|
|
|
|
</span>
|
2015-11-06 16:07:55 +00:00
|
|
|
|
</span>
|
2015-11-06 17:17:41 +00:00
|
|
|
|
</div>
|
2015-11-06 16:07:55 +00:00
|
|
|
|
|
|
|
|
|
<div class="right">
|
|
|
|
|
<button type="black" disabled small>Until {{ sil.endsAt | amCalendar }}</button>
|
2015-11-16 20:45:28 +00:00
|
|
|
|
<button class="delete-button" type="black" ng-click="delete(sil.id)" small upper>Delete</button>
|
|
|
|
|
<button class="edit-button" type="black" ng-click="toggleSilenceForm()" small upper>Edit</button>
|
2015-11-06 16:07:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-11-16 20:45:28 +00:00
|
|
|
|
<div class="edit-silence" ng-show="showSilenceForm">
|
|
|
|
|
<silence-form silence="sil"></silence-form>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-11-06 17:17:41 +00:00
|
|
|
|
<div class="detail group" ng-show="showDetails">
|
2015-11-06 16:07:55 +00:00
|
|
|
|
<table class="table-flat">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr ng-show="sil.createdBy">
|
|
|
|
|
<td>creator</td>
|
|
|
|
|
<td>{{ sil.createdBy }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr ng-show="sil.comment">
|
|
|
|
|
<td>comment</td>
|
|
|
|
|
<td>{{ sil.comment }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>active</td>
|
|
|
|
|
<td>
|
|
|
|
|
<span>{{ sil.startsAt | date:'yyyy-MM-dd HH:mm' }}</span>
|
|
|
|
|
–
|
|
|
|
|
<span>{{ sil.endsAt | date:'yyyy-MM-dd HH:mm' }}</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|