All files / src/app/components/device-deployers device-deployers.component.html

100% Statements 31/31
100% Branches 4/4
100% Functions 0/0
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 243x   68x   68x   68x 8x     1x 1x 1x   1x 8x 17x 17x 1x     1x 68x  
<h1 class="title">Device deployers</h1>
 
<app-loader *ngIf="!deviceDeployers" elementName="deployers"></app-loader>
 
<app-empty-placeholder *ngIf="deviceDeployers && deviceDeployers.length === 0"></app-empty-placeholder>
 
<div class="container" *ngIf="deviceDeployers && deviceDeployers.length>0">
    <p-table [value]="deviceDeployers" [paginator]="true" [rows]="10" [rowsPerPageOptions]="[10, 20, 50]" [showCurrentPageReport]="true" currentPageReportTemplate="{first} - {last} of {totalRecords} deployers" [rowHover]="true">
        <ng-template pTemplate="header">
            <tr>
                <th pSortableColumn="id">id</th>
                <th pSortableColumn="url">Url</th>
            </tr>
        </ng-template>
        <ng-template pTemplate="body" let-deployer let-i="rowIndex">
            <tr [routerLink]="['/device-deployers/', deployer.id]">
                <td>{{ deployer.id }}</td>
                <td>{{ deployer.url }}</td>
            </tr>
        </ng-template>
    </p-table>
</div>
<button class="button is-rounded" [routerLink]="['/device-deployers/new']" id="addDeployer">Add new deployer</button>