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