2 [value]=
"followers" [lazy]=
"true" [paginator]=
"true" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)"
5 <ng-template pTemplate=
"caption">
8 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
9 (keyup)=
"onSearch($event)"
14 <ng-template pTemplate=
"header">
16 <th i18n
>Follower handle
</th>
17 <th style=
"width: 100px;" i18n
pSortableColumn=
"state">State
<p-sortIcon field=
"state"></p-sortIcon></th>
18 <th style=
"width: 100px;" i18n
pSortableColumn=
"score">Score
<p-sortIcon field=
"score"></p-sortIcon></th>
19 <th style=
"width: 200px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
20 <th style=
"width: 100px;"></th>
24 <ng-template pTemplate=
"body" let-follow
>
26 <td><a [href]=
"follow.follower.url" target=
"_blank" rel=
"noopener noreferrer">{{ follow.follower.name + '@' + follow.follower.host }}
</a></td>
28 <td *
ngIf=
"follow.state === 'accepted'" i18n
>Accepted
</td>
29 <td *
ngIf=
"follow.state === 'pending'" i18n
>Pending
</td>
31 <td>{{ follow.score }}
</td>
32 <td>{{ follow.createdAt }}
</td>
34 <td class=
"action-cell">
35 <ng-container *
ngIf=
"follow.state === 'pending'">
36 <my-button i18n-label
label=
"Accept" icon=
"tick" (click)=
"acceptFollower(follow)"></my-button>
37 <my-button i18n-label
label=
"Refuse" icon=
"cross" (click)=
"rejectFollower(follow)"></my-button>
40 <my-delete-button *
ngIf=
"follow.state === 'accepted'" (click)=
"deleteFollower(follow)"></my-delete-button>