2 <my-global-icon iconName=
"follower" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Followers of your instance
</ng-container>
7 [value]=
"followers" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [first]=
"pagination.start"
8 [rowsPerPageOptions]=
"rowsPerPageOptions" [sortField]=
"sort.field" [sortOrder]=
"sort.order"
9 [lazy]=
"true" (onLazyLoad)=
"loadLazy($event)" [lazyLoadOnInit]=
"false"
10 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
11 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} followers"
13 <ng-template pTemplate=
"caption">
16 <my-advanced-input-filter (search)=
"onSearch($event)"></my-advanced-input-filter>
21 <ng-template pTemplate=
"header">
23 <th style=
"width: 150px;" i18n
>Actions
</th>
24 <th i18n
>Follower
</th>
25 <th style=
"width: 100px;" i18n
pSortableColumn=
"state">State
<p-sortIcon field=
"state"></p-sortIcon></th>
26 <th style=
"width: 100px;" i18n
pSortableColumn=
"score">Score
<p-sortIcon field=
"score"></p-sortIcon></th>
27 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
31 <ng-template pTemplate=
"body" let-follow
>
33 <td class=
"action-cell">
34 <ng-container *
ngIf=
"follow.state === 'pending'">
35 <my-button i18n-title
title=
"Accept" icon=
"tick" (click)=
"acceptFollower(follow)"></my-button>
36 <my-button i18n-title
title=
"Refuse" icon=
"cross" (click)=
"rejectFollower(follow)"></my-button>
39 <my-delete-button label *
ngIf=
"follow.state === 'accepted'" (click)=
"deleteFollower(follow)"></my-delete-button>
42 <a [href]=
"follow.follower.url" i18n-title
title=
"Open actor page in a new tab" target=
"_blank" rel=
"noopener noreferrer">
43 {{ follow.follower.name + '@' + follow.follower.host }}
44 <my-global-icon iconName=
"external-link"></my-global-icon>
48 <td *
ngIf=
"follow.state === 'accepted'">
49 <span class=
"pt-badge badge-green" i18n
>Accepted
</span>
51 <td *
ngIf=
"follow.state === 'pending'">
52 <span class=
"pt-badge badge-yellow" i18n
>Pending
</span>
55 <td>{{ follow.score }}
</td>
56 <td>{{ follow.createdAt | date: 'short' }}
</td>
60 <ng-template pTemplate=
"emptymessage">
63 <div class=
"no-results">
64 <ng-container *
ngIf=
"search" i18n
>No follower found matching current filters.
</ng-container>
65 <ng-container *
ngIf=
"!search" i18n
>Your instance doesn't have any follower.
</ng-container>