2 <my-global-icon iconName=
"following" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Instances you follow
</ng-container>
7 [value]=
"following" [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}'}} hosts"
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>
22 <a class=
"ml-2 follow-button" (click)=
"addDomainsToFollow()" (key.enter)=
"addDomainsToFollow()">
23 <my-global-icon iconName=
"following" aria-hidden=
"true"></my-global-icon>
24 <ng-container i18n
>Follow domain
</ng-container>
29 <ng-template pTemplate=
"header">
31 <th style=
"width: 150px;">Action
</th>
33 <th style=
"width: 100px;" i18n
pSortableColumn=
"state">State
<p-sortIcon field=
"state"></p-sortIcon></th>
34 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
35 <th style=
"width: 160px;" i18n
pSortableColumn=
"redundancyAllowed">Redundancy allowed
<p-sortIcon field=
"redundancyAllowed"></p-sortIcon></th>
39 <ng-template pTemplate=
"body" let-follow
>
41 <td class=
"action-cell">
42 <my-delete-button label (click)=
"removeFollowing(follow)"></my-delete-button>
45 <a [href]=
"'https://' + follow.following.host" i18n-title
title=
"Open instance in a new tab" target=
"_blank" rel=
"noopener noreferrer">
46 {{ follow.following.host }}
47 <span class=
"glyphicon glyphicon-new-window"></span>
51 <td *
ngIf=
"follow.state === 'accepted'">
52 <span class=
"badge badge-green" i18n
>Accepted
</span>
54 <td *
ngIf=
"follow.state === 'pending'">
55 <span class=
"badge badge-yellow" i18n
>Pending
</span>
58 <td>{{ follow.createdAt | date: 'short' }}
</td>
60 <my-redundancy-checkbox
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-batch-domains-modal #batchDomainsModal i18n-action
action=
"Follow domains" (domains)=
"addFollowing($event)">
80 <ng-container ngProjectAs=
"warning">
81 <div i18n *
ngIf=
"httpEnabled() === false" class=
"alert alert-warning">
82 It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers.
85 </my-batch-domains-modal>