]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/follows/followers-list/followers-list.component.html
allow sorting notifications
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / followers-list / followers-list.component.html
CommitLineData
ed5bb517
K
1<h1>
2 <my-global-icon iconName="follower" aria-hidden="true"></my-global-icon>
3 <ng-container i18n>Instances following you</ng-container>
4</h1>
5
ab998f7b 6<p-table
b8cf27c0 7 [value]="followers" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
1d26d05f 8 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" (onPage)="onPage($event)"
b8cf27c0 9 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
f66b8d12 10 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} followers"
04e0fc48 11>
b014b6b9
C
12 <ng-template pTemplate="caption">
13 <div class="caption">
25a42e29
RK
14 <div class="ml-auto has-feedback has-clear">
15 <input
16 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
17 (keyup)="onSearch($event)"
18 >
19 <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
20 <span class="sr-only" i18n>Clear filters</span>
21 </div>
b014b6b9
C
22 </div>
23 </ng-template>
24
ab998f7b
C
25 <ng-template pTemplate="header">
26 <tr>
0dc64777 27 <th i18n>Follower handle</th>
68d19a0a
RK
28 <th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
29 <th style="width: 100px;" i18n pSortableColumn="score">Score <p-sortIcon field="score"></p-sortIcon></th>
df4c603d 30 <th style="width: 150px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
572bf73b 31 <th style="width: 150px;"></th>
ab998f7b
C
32 </tr>
33 </ng-template>
34
35 <ng-template pTemplate="body" let-follow>
36 <tr>
1d26d05f
RK
37 <td>
38 <a [href]="follow.follower.url" i18n-title title="Open actor page in a new tab" target="_blank" rel="noopener noreferrer">
39 {{ follow.follower.name + '@' + follow.follower.host }}
40 <span class="glyphicon glyphicon-new-window"></span>
41 </a>
42 </td>
3827c3b3
C
43
44 <td *ngIf="follow.state === 'accepted'" i18n>Accepted</td>
45 <td *ngIf="follow.state === 'pending'" i18n>Pending</td>
46
0dc64777 47 <td>{{ follow.score }}</td>
7f979fd8 48 <td>{{ follow.createdAt | date: 'short' }}</td>
0dc64777
C
49
50 <td class="action-cell">
51 <ng-container *ngIf="follow.state === 'pending'">
2170f1db 52 <my-button i18n-title title="Accept" icon="tick" (click)="acceptFollower(follow)"></my-button>
53 <my-button i18n-title title="Refuse" icon="cross" (click)="rejectFollower(follow)"></my-button>
0dc64777
C
54 </ng-container>
55
56 <my-delete-button *ngIf="follow.state === 'accepted'" (click)="deleteFollower(follow)"></my-delete-button>
57 </td>
ab998f7b
C
58 </tr>
59 </ng-template>
d3840613
RK
60
61 <ng-template pTemplate="emptymessage">
62 <tr>
63 <td colspan="6">
22839330 64 <div class="no-results">
d3840613
RK
65 <ng-container *ngIf="search" i18n>No follower found matching current filters.</ng-container>
66 <ng-container *ngIf="!search" i18n>Your instance doesn't have any follower.</ng-container>
67 </div>
68 </td>
69 </tr>
70 </ng-template>
ab998f7b 71</p-table>