]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/follows/following-list/following-list.component.html
Fix ng select in admin
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / following-list / following-list.component.html
CommitLineData
ed5bb517
K
1<h1>
2 <my-global-icon iconName="following" aria-hidden="true"></my-global-icon>
3 <ng-container i18n>Instances you follow</ng-container>
4</h1>
5
ab998f7b 6<p-table
b8cf27c0 7 [value]="following" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
1d26d05f 8 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" (onPage)="onPage($event)"
b8cf27c0 9 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
f66b8d12 10 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} hosts"
04e0fc48 11>
b014b6b9
C
12 <ng-template pTemplate="caption">
13 <div class="caption">
25a42e29 14 <div class="ml-auto has-feedback has-clear">
b014b6b9
C
15 <input
16 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
be27ef3b 17 (keyup)="onSearch($event)"
b014b6b9 18 >
25a42e29
RK
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>
b014b6b9 21 </div>
bb152476 22 <a class="ml-2 follow-button" (click)="addDomainsToFollow()" (key.enter)="addDomainsToFollow()">
ea7337cf 23 <my-global-icon iconName="following" aria-hidden="true"></my-global-icon>
bb152476
RK
24 <ng-container i18n>Follow domain</ng-container>
25 </a>
b014b6b9
C
26 </div>
27 </ng-template>
28
ab998f7b
C
29 <ng-template pTemplate="header">
30 <tr>
30814423 31 <th style="width: 150px;">Action</th>
b1d40cff 32 <th i18n>Host</th>
68d19a0a 33 <th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
df4c603d 34 <th style="width: 150px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
68d19a0a 35 <th style="width: 160px;" i18n pSortableColumn="redundancyAllowed">Redundancy allowed <p-sortIcon field="redundancyAllowed"></p-sortIcon></th>
ab998f7b
C
36 </tr>
37 </ng-template>
38
39 <ng-template pTemplate="body" let-follow>
40 <tr>
30814423
K
41 <td class="action-cell">
42 <my-delete-button label (click)="removeFollowing(follow)"></my-delete-button>
43 </td>
b8cf27c0
RK
44 <td>
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>
48 </a>
49 </td>
3827c3b3 50
bc99dfe5
RK
51 <td *ngIf="follow.state === 'accepted'">
52 <span class="badge badge-green" i18n>Accepted</span>
53 </td>
54 <td *ngIf="follow.state === 'pending'">
55 <span class="badge badge-yellow" i18n>Pending</span>
56 </td>
3827c3b3 57
7f979fd8 58 <td>{{ follow.createdAt | date: 'short' }}</td>
c48e82b5
C
59 <td>
60 <my-redundancy-checkbox
61 [host]="follow.following.host" [redundancyAllowed]="follow.following.hostRedundancyAllowed"
62 ></my-redundancy-checkbox>
63 </td>
ab998f7b
C
64 </tr>
65 </ng-template>
d3840613
RK
66
67 <ng-template pTemplate="emptymessage">
68 <tr>
69 <td colspan="6">
22839330 70 <div class="no-results">
d3840613 71 <ng-container *ngIf="search" i18n>No host found matching current filters.</ng-container>
b8cf27c0 72 <ng-container *ngIf="!search" i18n>Your instance is not following anyone.</ng-container>
d3840613
RK
73 </div>
74 </td>
75 </tr>
76 </ng-template>
ab998f7b 77</p-table>
bb152476 78
b8cf27c0
RK
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.
83 </div>
84 </ng-container>
85</my-batch-domains-modal>