This commit is contained in:
Michele Artini 2022-11-29 12:22:59 +01:00
parent 05416186b1
commit 437e835d42
1 changed files with 9 additions and 2 deletions

View File

@ -11,6 +11,10 @@
<div class="row"> <div class="row">
<div class="col"> <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 mb-3" ng-repeat="section in info">
<div class="card-header">{{section.name}}</div> <div class="card-header">{{section.name}}</div>
<table class="table table-striped table-sm small"> <table class="table table-striped table-sm small">
@ -23,11 +27,14 @@
</tr> </tr>
</thead> </thead>
<tbody> <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> <th style="width:30%">{{r.k}}</th>
<td>{{r.v}}</td> <td>{{r.v}}</td>
</tr> </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.group}}</td>
<td>{{r.name}}</td> <td>{{r.name}}</td>
<td><span ng-repeat="v in r.versions">{{v}}<br /></span></td> <td><span ng-repeat="v in r.versions">{{v}}<br /></span></td>