aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/follows/followers-list/followers-list.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-08 15:47:44 +0200
committerChocobozzz <me@florianbigard.com>2019-04-08 15:47:44 +0200
commit0dc647775881eb1378b213a530996cd096de24ea (patch)
tree2b9042cb56ecb876d5c707bdf550fa1303df047c /client/src/app/+admin/follows/followers-list/followers-list.component.html
parent14893eb71cb2d4ca47e07589c81958863603aba4 (diff)
downloadPeerTube-0dc647775881eb1378b213a530996cd096de24ea.tar.gz
PeerTube-0dc647775881eb1378b213a530996cd096de24ea.tar.zst
PeerTube-0dc647775881eb1378b213a530996cd096de24ea.zip
Add delete/manual approval instance followers in client
Diffstat (limited to 'client/src/app/+admin/follows/followers-list/followers-list.component.html')
-rw-r--r--client/src/app/+admin/follows/followers-list/followers-list.component.html20
1 files changed, 14 insertions, 6 deletions
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.html
index fc022bdb4..da0ba95e3 100644
--- a/client/src/app/+admin/follows/followers-list/followers-list.component.html
+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html
@@ -14,25 +14,33 @@
14 <ng-template pTemplate="header"> 14 <ng-template pTemplate="header">
15 <tr> 15 <tr>
16 <th i18n style="width: 60px">ID</th> 16 <th i18n style="width: 60px">ID</th>
17 <th i18n>Score</th> 17 <th i18n>Follower handle</th>
18 <th i18n>Name</th>
19 <th i18n>Host</th>
20 <th i18n>State</th> 18 <th i18n>State</th>
19 <th i18n>Score</th>
21 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> 20 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
21 <th></th>
22 </tr> 22 </tr>
23 </ng-template> 23 </ng-template>
24 24
25 <ng-template pTemplate="body" let-follow> 25 <ng-template pTemplate="body" let-follow>
26 <tr> 26 <tr>
27 <td>{{ follow.id }}</td> 27 <td>{{ follow.id }}</td>
28 <td>{{ follow.score }}</td> 28 <td>{{ follow.follower.name + '@' + follow.follower.host }}</td>
29 <td>{{ follow.follower.name }}</td>
30 <td>{{ follow.follower.host }}</td>
31 29
32 <td *ngIf="follow.state === 'accepted'" i18n>Accepted</td> 30 <td *ngIf="follow.state === 'accepted'" i18n>Accepted</td>
33 <td *ngIf="follow.state === 'pending'" i18n>Pending</td> 31 <td *ngIf="follow.state === 'pending'" i18n>Pending</td>
34 32
33 <td>{{ follow.score }}</td>
35 <td>{{ follow.createdAt }}</td> 34 <td>{{ follow.createdAt }}</td>
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>
36 </tr> 44 </tr>
37 </ng-template> 45 </ng-template>
38</p-table> 46</p-table>