-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.html
46 lines (40 loc) · 1.17 KB
/
ui.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<div class="">
<div class="container">
<h3 class="text-center m-5">
<strong>Select a rule to check in KMi
</strong>
</h3>
<div class="row mt-3">
<div class="col-md-3" ng-repeat="rule in rules track by $index" >
<div class="card mb-2" ng-model="selectedRule" >
<div class="card-body">
<h5 class="card-title">Rule #{{$index+1}}</h5>
<p class="card-text">{{rule.description}}</p>
<a ng-click="run()" class="card-link">Check this rule</a>
</div>
</div>
</div>
</div>
<div class="mt-3 statuses">
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Rule</th>
<th>Validity</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="_status in statuses">
<td>{{ _status.entity.name}}</td>
<td>{{ _status.rule.comment}}</td>
<td ng-style="_status.color">
<span ng-if="!_status.violated">check</span><span ng-if="_status.violated"></span>
<span ng-repeat="entity in _status.entity_violating track by $index">{{entity}}, </span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>