2 <my-global-icon iconName=
"following" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Your instance subscriptions
</ng-container>
7 [value]=
"following" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
8 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)"
9 [lazy]=
"true" (onLazyLoad)=
"loadLazy($event)" [lazyLoadOnInit]=
"false"
10 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
11 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} hosts"
13 <ng-template pTemplate=
"caption">
15 <div class=
"left-buttons">
16 <a class=
"follow-button" (click)=
"openFollowModal()" (key.enter)=
"openFollowModal()">
17 <my-global-icon iconName=
"following" aria-hidden=
"true"></my-global-icon>
18 <ng-container i18n
>Follow
</ng-container>
23 <my-advanced-input-filter (search)=
"onSearch($event)"></my-advanced-input-filter>
28 <ng-template pTemplate=
"header">
30 <th style=
"width: 150px;" i18n
>Action
</th>
31 <th i18n
>Following
</th>
32 <th style=
"width: 100px;" i18n
pSortableColumn=
"state">State
<p-sortIcon field=
"state"></p-sortIcon></th>
33 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
34 <th style=
"width: 160px;" i18n
pSortableColumn=
"redundancyAllowed">Redundancy allowed
<p-sortIcon field=
"redundancyAllowed"></p-sortIcon></th>
38 <ng-template pTemplate=
"body" let-follow
>
40 <td class=
"action-cell">
41 <my-delete-button label (click)=
"removeFollowing(follow)"></my-delete-button>
44 <a [href]=
"follow.following.url" i18n-title
title=
"Open instance in a new tab" target=
"_blank" rel=
"noopener noreferrer">
45 {{ follow.following.name + '@' + follow.following.host }}
46 <my-global-icon iconName=
"external-link"></my-global-icon>
50 <td *
ngIf=
"follow.state === 'accepted'">
51 <span class=
"pt-badge badge-green" i18n
>Accepted
</span>
53 <td *
ngIf=
"follow.state === 'pending'">
54 <span class=
"pt-badge badge-yellow" i18n
>Pending
</span>
57 <td>{{ follow.createdAt | date: 'short' }}
</td>
59 <my-redundancy-checkbox
60 *
ngIf=
"isInstanceFollowing(follow)"
61 [host]=
"follow.following.host" [redundancyAllowed]=
"follow.following.hostRedundancyAllowed"
62 ></my-redundancy-checkbox>
67 <ng-template pTemplate=
"emptymessage">
70 <div class=
"no-results">
71 <ng-container *
ngIf=
"search" i18n
>No host found matching current filters.
</ng-container>
72 <ng-container *
ngIf=
"!search" i18n
>Your instance is not following anyone.
</ng-container>
79 <my-follow-modal #followModal
></my-follow-modal>