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