]>
Commit | Line | Data |
---|---|---|
cd83ea1b | 1 | <div class="admin-sub-header"> |
b1d40cff | 2 | <div i18n class="form-sub-title">Jobs list</div> |
94a5ff8a C |
3 | |
4 | <div class="peertube-select-container"> | |
5 | <select [(ngModel)]="jobState" (ngModelChange)="onJobStateChanged()"> | |
6 | <option *ngFor="let state of jobStates" [value]="state">{{ state }}</option> | |
7 | </select> | |
8 | </div> | |
5cd80545 | 9 | </div> |
cd83ea1b | 10 | |
ab998f7b | 11 | <p-table |
94831479 | 12 | [value]="jobs" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" dataKey="uniqId" |
6d8c70aa | 13 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" [first]="pagination.start" |
ab998f7b C |
14 | > |
15 | <ng-template pTemplate="header"> | |
16 | <tr> | |
17 | <th style="width: 27px"></th> | |
b1d40cff C |
18 | <th i18n style="width: 60px">ID</th> |
19 | <th i18n style="width: 210px">Type</th> | |
20 | <th i18n style="width: 130px">State</th> | |
21 | <th i18n style="width: 250px" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | |
94831479 C |
22 | <th i18n style="width: 250px">Processed on</th> |
23 | <th i18n style="width: 250px">Finished on</th> | |
ab998f7b C |
24 | </tr> |
25 | </ng-template> | |
94a5ff8a | 26 | |
ab998f7b C |
27 | <ng-template pTemplate="body" let-expanded="expanded" let-job> |
28 | <tr> | |
29 | <td> | |
30 | <span class="expander" [pRowToggler]="job"> | |
31 | <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i> | |
32 | </span> | |
33 | </td> | |
34 | <td>{{ job.id }}</td> | |
35 | <td>{{ job.type }}</td> | |
36 | <td>{{ job.state }}</td> | |
37 | <td>{{ job.createdAt }}</td> | |
94831479 C |
38 | <td>{{ job.processedOn }}</td> |
39 | <td>{{ job.finishedOn }}</td> | |
ab998f7b C |
40 | </tr> |
41 | </ng-template> | |
42 | ||
43 | <ng-template pTemplate="rowexpansion" let-job> | |
44 | <tr> | |
94831479 | 45 | <td colspan="7"> |
ab998f7b C |
46 | <pre>{{ job.data }}</pre> |
47 | </td> | |
48 | </tr> | |
c1953c56 | 49 | <tr class="job-error" *ngIf="job.error"> |
94831479 | 50 | <td colspan="7"> |
c1953c56 C |
51 | <pre>{{ job.error }}</pre> |
52 | </td> | |
53 | </tr> | |
ab998f7b C |
54 | </ng-template> |
55 | </p-table> | |
94a5ff8a | 56 |