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"
12 [(selection)]=
"selectedRows"
14 <ng-template pTemplate=
"caption">
16 <div class=
"left-buttons">
18 *
ngIf=
"isInSelectionMode()" i18n-label
label=
"Batch actions" theme=
"orange"
19 [actions]=
"bulkActions" [entry]=
"selectedRows"
25 <my-advanced-input-filter [filters]=
"searchFilters" (search)=
"onSearch($event)"></my-advanced-input-filter>
30 <ng-template pTemplate=
"header">
32 <th style=
"width: 40px">
33 <p-tableHeaderCheckbox ariaLabel=
"Select all rows" i18n-ariaLabel
></p-tableHeaderCheckbox>
35 <th style=
"width: 150px;" i18n
>Actions
</th>
36 <th i18n
>Follower
</th>
37 <th style=
"width: 100px;" i18n
pSortableColumn=
"state">State
<p-sortIcon field=
"state"></p-sortIcon></th>
38 <th style=
"width: 100px;" i18n
pSortableColumn=
"score">Score
<p-sortIcon field=
"score"></p-sortIcon></th>
39 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
43 <ng-template pTemplate=
"body" let-follow
>
45 <td class=
"checkbox-cell">
46 <p-tableCheckbox [value]=
"follow" ariaLabel=
"Select this row" i18n-ariaLabel
></p-tableCheckbox>
49 <td class=
"action-cell">
50 <my-button *
ngIf=
"follow.state !== 'accepted'" i18n-title
title=
"Accept" icon=
"tick" (click)=
"acceptFollower([ follow ])"></my-button>
51 <my-button *
ngIf=
"follow.state !== 'rejected'" i18n-title
title=
"Reject" icon=
"cross" (click)=
"rejectFollower([ follow ])"></my-button>
53 <my-delete-button *
ngIf=
"follow.state === 'rejected'" (click)=
"deleteFollowers([ follow ])"></my-delete-button>
56 <a [href]=
"follow.follower.url" i18n-title
title=
"Open actor page in a new tab" target=
"_blank" rel=
"noopener noreferrer">
57 {{ buildFollowerName(follow) }}
58 <my-global-icon iconName=
"external-link"></my-global-icon>
63 <span *
ngIf=
"follow.state === 'accepted'" class=
"pt-badge badge-green" i18n
>Accepted
</span>
64 <span *
ngIf=
"follow.state === 'pending'" class=
"pt-badge badge-yellow" i18n
>Pending
</span>
65 <span *
ngIf=
"follow.state === 'rejected'" class=
"pt-badge badge-red" i18n
>Rejected
</span>
68 <td>{{ follow.score }}
</td>
69 <td>{{ follow.createdAt | date: 'short' }}
</td>
73 <ng-template pTemplate=
"emptymessage">
76 <div class=
"no-results">
77 <ng-container *
ngIf=
"search" i18n
>No follower found matching current filters.
</ng-container>
78 <ng-container *
ngIf=
"!search" i18n
>Your instance doesn't have any follower.
</ng-container>