1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/linuxdash_ynh.git synced 2024-09-03 19:36:07 +02:00
linuxdash_ynh/sources/templates/app/table-data-plugin.html

41 lines
1.1 KiB
HTML
Raw Normal View History

<plugin
heading="{{ heading }}"
last-updated="lastGet"
on-refresh="getData()"
info="{{ info }}">
<loader ng-if="!tableRows"></loader>
<div class="animate" ng-show="tableRows">
<table class="table-data-plugin">
<thead>
<tr class="table-data-filter-container" ng-show="tableRows.length">
<th colspan="{{ tableHeaders.length }}" class="filter-container">
<input class="filter" ng-model="keyword" placeholder="Search">
</th>
</tr>
<tr>
<th ng-repeat="header in tableHeaders track by $index">
<a href="" ng-click="setSortColumn(header)">{{ header }}</a>
<span class="column-sort-caret">
{{ (header === sortByColumn && !sortReverse) ? '&#9650;': ''; }}
{{ (header === sortByColumn && sortReverse) ? '&#9660;': ''; }}
</span>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in tableRows | filter:keyword">
<td ng-repeat="header in tableHeaders track by $index">
{{ row[header] }}
</td>
</tr>
</tbody>
</table>
</div>
<no-data ng-show="emptyResult"></no-data>
</plugin>