2 [value]=
"followers" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" (onPage)=
"onPage($event)"
4 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
5 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} followers"
7 <ng-template pTemplate=
"caption">
9 <div class=
"ml-auto has-feedback has-clear">
11 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
12 (keyup)=
"onSearch($event)"
14 <a class=
"glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)=
"resetSearch()"></a>
15 <span class=
"sr-only" i18n
>Clear filters
</span>
20 <ng-template pTemplate=
"header">
22 <th i18n
>Follower handle
</th>
23 <th style=
"width: 100px;" i18n
pSortableColumn=
"state">State
<p-sortIcon field=
"state"></p-sortIcon></th>
24 <th style=
"width: 100px;" i18n
pSortableColumn=
"score">Score
<p-sortIcon field=
"score"></p-sortIcon></th>
25 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
26 <th style=
"width: 150px;"></th>
30 <ng-template pTemplate=
"body" let-follow
>
33 <a [href]=
"follow.follower.url" i18n-title
title=
"Open actor page in a new tab" target=
"_blank" rel=
"noopener noreferrer">
34 {{ follow.follower.name + '@' + follow.follower.host }}
35 <span class=
"glyphicon glyphicon-new-window"></span>
39 <td *
ngIf=
"follow.state === 'accepted'" i18n
>Accepted
</td>
40 <td *
ngIf=
"follow.state === 'pending'" i18n
>Pending
</td>
42 <td>{{ follow.score }}
</td>
43 <td>{{ follow.createdAt | date: 'short' }}
</td>
45 <td class=
"action-cell">
46 <ng-container *
ngIf=
"follow.state === 'pending'">
47 <my-button i18n-label
label=
"Accept" icon=
"tick" (click)=
"acceptFollower(follow)"></my-button>
48 <my-button i18n-label
label=
"Refuse" icon=
"cross" (click)=
"rejectFollower(follow)"></my-button>
51 <my-delete-button *
ngIf=
"follow.state === 'accepted'" (click)=
"deleteFollower(follow)"></my-delete-button>
56 <ng-template pTemplate=
"emptymessage">
59 <div class=
"empty-table-message">
60 <ng-container *
ngIf=
"search" i18n
>No follower found matching current filters.
</ng-container>
61 <ng-container *
ngIf=
"!search" i18n
>Your instance doesn't have any follower.
</ng-container>