aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/system/runners/runner-list/runner-list.component.html
blob: 606eb9afd2020734d115a80f56a4b1d8e7faec0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<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 colspan="6">
        <div class="no-results">
          <ng-container i18n>No remote runners found.</ng-container>
        </div>
      </td>
    </tr>
  </ng-template>
</p-table>