]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/system/jobs/jobs.component.html
1 <div class=
"admin-sub-header">
2 <div i18n
class=
"form-sub-title">Jobs list
</div>
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>
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>
24 [value]=
"jobs" [lazy]=
"true" [paginator]=
"true" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" dataKey=
"uniqId"
25 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" [first]=
"pagination.start"
27 <ng-template pTemplate=
"header">
29 <th style=
"width: 27px"></th>
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>
34 <th i18n
style=
"width: 250px">Processed on
</th>
35 <th i18n
style=
"width: 250px">Finished on
</th>
39 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-job
>
42 <span class=
"expander" [pRowToggler]=
"job">
43 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
47 <td>{{ job.type }}
</td>
48 <td>{{ job.state }}
</td>
49 <td>{{ job.createdAt }}
</td>
50 <td>{{ job.processedOn }}
</td>
51 <td>{{ job.finishedOn }}
</td>
55 <ng-template pTemplate=
"rowexpansion" let-job
>
58 <pre>{{ job.data }}
</pre>
61 <tr class=
"job-error" *
ngIf=
"job.error">
63 <pre>{{ job.error }}
</pre>