admin: new route to check file on disk

This commit is contained in:
nemunaire 2018-08-19 22:19:49 +02:00 committed by Pierre-Olivier Mercier
commit 20dfd99ec0
4 changed files with 27 additions and 6 deletions

View file

@ -1,5 +1,6 @@
<h2>
Fichiers
<small class="text-muted" ng-if="errfnd > 0"><span class="glyphicon glyphicon-exclamation-sign"></span> <ng-pluralize count="errfnd" when="{'one': '{} erreur trouvée', 'other': '{} erreurs trouvées'}"></ng-pluralize></small>
<button ng-click="checksumAll()" class="float-right btn btn-sm btn-secondary"><span class="glyphicon glyphicon-flash" aria-hidden="true"></span> Vérifier les fichiers</button>
</h2>
@ -13,9 +14,10 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="file in files | filter: query" ng-click="show(file)">
<tr ng-repeat="file in files | filter: query" ng-class="{'bg-danger': file.err !== undefined && file.err !== true}" ng-click="show(file)">
<td ng-repeat="field in fields">
{{ file[field] }}
<span ng-if="field == 'id' && file.err !== undefined && file.err !== true" title="{{ file.err }}" class="glyphicon glyphicon-exclamation-sign"></span>
</td>
</tr>
</tbody>