]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/follows/followers-list/followers-list.component.html
Use ::ng-deep instead of /deep/
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / followers-list / followers-list.component.html
CommitLineData
ab998f7b
C
1<p-table
2 [value]="followers" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
04e0fc48 4>
b014b6b9
C
5 <ng-template pTemplate="caption">
6 <div class="caption">
7 <input
8 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
9 (keyup)="onSearch($event.target.value)"
10 >
11 </div>
12 </ng-template>
13
ab998f7b
C
14 <ng-template pTemplate="header">
15 <tr>
b1d40cff 16 <th i18n style="width: 60px">ID</th>
0dc64777 17 <th i18n>Follower handle</th>
b1d40cff 18 <th i18n>State</th>
0dc64777 19 <th i18n>Score</th>
b1d40cff 20 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
0dc64777 21 <th></th>
ab998f7b
C
22 </tr>
23 </ng-template>
24
25 <ng-template pTemplate="body" let-follow>
26 <tr>
27 <td>{{ follow.id }}</td>
e1a1f9c6 28 <td><a [href]="follow.follower.url" target="_blank" rel="noopener noreferrer">{{ follow.follower.name + '@' + follow.follower.host }}</a></td>
3827c3b3
C
29
30 <td *ngIf="follow.state === 'accepted'" i18n>Accepted</td>
31 <td *ngIf="follow.state === 'pending'" i18n>Pending</td>
32
0dc64777 33 <td>{{ follow.score }}</td>
ab998f7b 34 <td>{{ follow.createdAt }}</td>
0dc64777
C
35
36 <td class="action-cell">
37 <ng-container *ngIf="follow.state === 'pending'">
38 <my-button i18n-label label="Accept" icon="tick" (click)="acceptFollower(follow)"></my-button>
39 <my-button i18n-label label="Refuse" icon="cross" (click)="rejectFollower(follow)"></my-button>
40 </ng-container>
41
42 <my-delete-button *ngIf="follow.state === 'accepted'" (click)="deleteFollower(follow)"></my-delete-button>
43 </td>
ab998f7b
C
44 </tr>
45 </ng-template>
46</p-table>