2 [value]=
"following" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" (onPage)=
"onPage($event)"
4 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
5 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} hosts"
7 <ng-template pTemplate=
"caption">
9 <div class=
"ml-auto has-feedback has-clear">
11 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
12 (keyup)=
"onSearch($event)"
14 <a class=
"glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)=
"resetSearch()"></a>
15 <span class=
"sr-only" i18n
>Clear filters
</span>
17 <a class=
"ml-2 follow-button" (click)=
"addDomainsToFollow()" (key.enter)=
"addDomainsToFollow()">
18 <my-global-icon iconName=
"add" aria-hidden=
"true"></my-global-icon>
19 <ng-container i18n
>Follow domain
</ng-container>
24 <ng-template pTemplate=
"header">
27 <th style=
"width: 100px;" i18n
pSortableColumn=
"state">State
<p-sortIcon field=
"state"></p-sortIcon></th>
28 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
29 <th style=
"width: 160px;" i18n
pSortableColumn=
"redundancyAllowed">Redundancy allowed
<p-sortIcon field=
"redundancyAllowed"></p-sortIcon></th>
30 <th style=
"width: 150px;"></th>
34 <ng-template pTemplate=
"body" let-follow
>
37 <a [href]=
"'https://' + follow.following.host" i18n-title
title=
"Open instance in a new tab" target=
"_blank" rel=
"noopener noreferrer">
38 {{ follow.following.host }}
39 <span class=
"glyphicon glyphicon-new-window"></span>
43 <td *
ngIf=
"follow.state === 'accepted'" i18n
>Accepted
</td>
44 <td *
ngIf=
"follow.state === 'pending'" i18n
>Pending
</td>
46 <td>{{ follow.createdAt | date: 'short' }}
</td>
48 <my-redundancy-checkbox
49 [host]=
"follow.following.host" [redundancyAllowed]=
"follow.following.hostRedundancyAllowed"
50 ></my-redundancy-checkbox>
52 <td class=
"action-cell">
53 <my-delete-button (click)=
"removeFollowing(follow)"></my-delete-button>
58 <ng-template pTemplate=
"emptymessage">
61 <div class=
"no-results">
62 <ng-container *
ngIf=
"search" i18n
>No host found matching current filters.
</ng-container>
63 <ng-container *
ngIf=
"!search" i18n
>Your instance is not following anyone.
</ng-container>
70 <my-batch-domains-modal #batchDomainsModal i18n-action
action=
"Follow domains" (domains)=
"addFollowing($event)">
71 <ng-container ngProjectAs=
"warning">
72 <div i18n *
ngIf=
"httpEnabled() === false" class=
"alert alert-warning">
73 It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers.
76 </my-batch-domains-modal>