filter
This commit is contained in:
parent
05416186b1
commit
437e835d42
|
@ -11,6 +11,10 @@
|
|||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
<p>
|
||||
<input type="text" class="form-control form-control-sm" ng-model="infoFilter" placeholder="Filter..."/>
|
||||
</p>
|
||||
|
||||
<div class="card mb-3" ng-repeat="section in info">
|
||||
<div class="card-header">{{section.name}}</div>
|
||||
<table class="table table-striped table-sm small">
|
||||
|
@ -23,11 +27,14 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="r in section.data" ng-if="section.name != 'Modules'">
|
||||
<tr ng-show="(section.data|filter:infoFilter).length == 0">
|
||||
<td colspan="4">No match</td>
|
||||
</tr>
|
||||
<tr ng-repeat="r in section.data|filter:infoFilter" ng-if="section.name != 'Modules'">
|
||||
<th style="width:30%">{{r.k}}</th>
|
||||
<td>{{r.v}}</td>
|
||||
</tr>
|
||||
<tr ng-repeat="r in section.data" ng-if="section.name == 'Modules'" ng-class="{'table-warning' : r.files.length > 1}">
|
||||
<tr ng-repeat="r in section.data|filter:infoFilter" ng-if="section.name == 'Modules'" ng-class="{'table-warning' : r.files.length > 1}">
|
||||
<td>{{r.group}}</td>
|
||||
<td>{{r.name}}</td>
|
||||
<td><span ng-repeat="v in r.versions">{{v}}<br /></span></td>
|
||||
|
|
Loading…
Reference in New Issue