diff options
Diffstat (limited to 'client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html')
-rw-r--r-- | client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html new file mode 100644 index 000000000..2fd23e2fc --- /dev/null +++ b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html | |||
@@ -0,0 +1,65 @@ | |||
1 | <h1 class="d-flex justify-content-between"> | ||
2 | <span class="text-nowrap me-2"> | ||
3 | <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon> | ||
4 | <ng-container i18n>Runner registration tokens</ng-container> | ||
5 | </span> | ||
6 | |||
7 | <div> | ||
8 | <a routerLink="/admin/system/runners/runners-list" class="peertube-button-link peertube-button-icon grey-button"> | ||
9 | <my-global-icon iconName="codesandbox" aria-hidden="true"></my-global-icon> | ||
10 | <ng-container i18n>Remote runners</ng-container> | ||
11 | </a> | ||
12 | </div> | ||
13 | </h1> | ||
14 | |||
15 | <p-table | ||
16 | [value]="registrationTokens" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start" | ||
17 | [rowsPerPageOptions]="rowsPerPageOptions" [sortField]="sort.field" [sortOrder]="sort.order" | ||
18 | [lazy]="true" (onLazyLoad)="loadLazy($event)" | ||
19 | [showCurrentPageReport]="true" i18n-currentPageReportTemplate | ||
20 | currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} registration tokens" | ||
21 | > | ||
22 | <ng-template pTemplate="header"> | ||
23 | <tr> | ||
24 | <th style="width: 120px;"></th> | ||
25 | <th i18n>Token</th> | ||
26 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | ||
27 | <th style="width: 160px;" i18n>Associated runners</th> | ||
28 | </tr> | ||
29 | </ng-template> | ||
30 | |||
31 | <ng-template pTemplate="caption"> | ||
32 | <div class="caption"> | ||
33 | <div class="left-buttons"> | ||
34 | <my-button className="orange-button" i18n-label label="Generate token" icon="add" (click)="generateToken()"></my-button> | ||
35 | </div> | ||
36 | </div> | ||
37 | </ng-template> | ||
38 | |||
39 | <ng-template pTemplate="body" let-registrationToken> | ||
40 | <tr> | ||
41 | <td class="action-cell"> | ||
42 | <my-action-dropdown | ||
43 | placement="bottom-right top-right left auto" container="body" | ||
44 | i18n-label label="Actions" [actions]="actions" [entry]="registrationToken" | ||
45 | ></my-action-dropdown> | ||
46 | </td> | ||
47 | |||
48 | <td>{{ registrationToken.registrationToken }}</td> | ||
49 | |||
50 | <td>{{ registrationToken.createdAt | date: 'short' }}</td> | ||
51 | |||
52 | <td>{{ registrationToken.registeredRunnersCount }}</td> | ||
53 | </tr> | ||
54 | </ng-template> | ||
55 | |||
56 | <ng-template pTemplate="emptymessage"> | ||
57 | <tr> | ||
58 | <td colspan="4"> | ||
59 | <div class="no-results"> | ||
60 | <ng-container i18n>No registration token found for remote runners.</ng-container> | ||
61 | </div> | ||
62 | </td> | ||
63 | </tr> | ||
64 | </ng-template> | ||
65 | </p-table> | ||