2 <my-global-icon iconName=
"follower" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Instances following you
</ng-container>
7 [value]=
"followers" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
8 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" (onPage)=
"onPage($event)"
9 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
10 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} followers"
12 <ng-template pTemplate=
"caption">
14 <div class=
"ml-auto has-feedback has-clear">
16 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
17 (keyup)=
"onSearch($event)"
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>
25 <ng-template pTemplate=
"header">
27 <th style=
"width: 150px;">Actions
</th>
28 <th i18n
>Follower handle
</th>
29 <th style=
"width: 100px;" i18n
pSortableColumn=
"state">State
<p-sortIcon field=
"state"></p-sortIcon></th>
30 <th style=
"width: 100px;" i18n
pSortableColumn=
"score">Score
<p-sortIcon field=
"score"></p-sortIcon></th>
31 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
35 <ng-template pTemplate=
"body" let-follow
>
37 <td class=
"action-cell">
38 <ng-container *
ngIf=
"follow.state === 'pending'">
39 <my-button i18n-title
title=
"Accept" icon=
"tick" (click)=
"acceptFollower(follow)"></my-button>
40 <my-button i18n-title
title=
"Refuse" icon=
"cross" (click)=
"rejectFollower(follow)"></my-button>
43 <my-delete-button label *
ngIf=
"follow.state === 'accepted'" (click)=
"deleteFollower(follow)"></my-delete-button>
46 <a [href]=
"follow.follower.url" i18n-title
title=
"Open actor page in a new tab" target=
"_blank" rel=
"noopener noreferrer">
47 {{ follow.follower.name + '@' + follow.follower.host }}
48 <span class=
"glyphicon glyphicon-new-window"></span>
52 <td *
ngIf=
"follow.state === 'accepted'">
53 <span class=
"badge badge-green" i18n
>Accepted
</span>
55 <td *
ngIf=
"follow.state === 'pending'">
56 <span class=
"badge badge-yellow" i18n
>Pending
</span>
59 <td>{{ follow.score }}
</td>
60 <td>{{ follow.createdAt | date: 'short' }}
</td>
64 <ng-template pTemplate=
"emptymessage">
67 <div class=
"no-results">
68 <ng-container *
ngIf=
"search" i18n
>No follower found matching current filters.
</ng-container>
69 <ng-container *
ngIf=
"!search" i18n
>Your instance doesn't have any follower.
</ng-container>