mirror of https://github.com/Chocobozzz/PeerTube
62 lines
2.0 KiB
HTML
62 lines
2.0 KiB
HTML
<h1 class="d-flex justify-content-between">
|
|
<span class="text-nowrap me-2">
|
|
<my-global-icon iconName="codesandbox" aria-hidden="true"></my-global-icon>
|
|
<ng-container i18n>Remote runners</ng-container>
|
|
</span>
|
|
|
|
<a routerLink="/admin/system/runners/registration-tokens-list" class="peertube-button-link peertube-button-icon grey-button">
|
|
<my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
|
|
<ng-container i18n>Runner registration tokens</ng-container>
|
|
</a>
|
|
</h1>
|
|
|
|
<p-table
|
|
[value]="runners" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
|
|
[rowsPerPageOptions]="rowsPerPageOptions" [sortField]="sort.field" [sortOrder]="sort.order"
|
|
[lazy]="true" (onLazyLoad)="loadLazy($event)"
|
|
[showCurrentPageReport]="true" i18n-currentPageReportTemplate
|
|
currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} remote runners"
|
|
>
|
|
<ng-template pTemplate="header">
|
|
<tr>
|
|
<th style="width: 120px;"></th>
|
|
<th i18n>Name</th>
|
|
<th i18n>Description</th>
|
|
<th i18n>IP</th>
|
|
<th i18n>Last contact</th>
|
|
<th style="width: 150px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
|
|
</tr>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="body" let-runner>
|
|
<tr>
|
|
<td class="action-cell">
|
|
<my-action-dropdown
|
|
placement="bottom-right top-right left auto" container="body"
|
|
i18n-label label="Actions" [actions]="actions" [entry]="runner"
|
|
></my-action-dropdown>
|
|
</td>
|
|
|
|
<td>{{ runner.name }}</td>
|
|
|
|
<td>{{ runner.description }}</td>
|
|
|
|
<td>{{ runner.ip }}</td>
|
|
|
|
<td>{{ runner.lastContact | date: 'short' }}</td>
|
|
|
|
<td>{{ runner.createdAt | date: 'short' }}</td>
|
|
</tr>
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="emptymessage">
|
|
<tr>
|
|
<td myAutoColspan>
|
|
<div class="no-results">
|
|
<ng-container i18n>No remote runners found.</ng-container>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</ng-template>
|
|
</p-table>
|