diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-19 09:43:01 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-19 09:43:01 +0200 |
commit | 8a02bd0433b7101c5ea36e87a4edb63204d2adec (patch) | |
tree | d7ab4b6164aef752c216bd2f22f8b3b270a724b8 /client/src/app/+admin/friends/friend-list/friend-list.component.html | |
parent | 9fd540562c356cb54b98861d2d9e7d4fbfcd00e0 (diff) | |
download | PeerTube-8a02bd0433b7101c5ea36e87a4edb63204d2adec.tar.gz PeerTube-8a02bd0433b7101c5ea36e87a4edb63204d2adec.tar.zst PeerTube-8a02bd0433b7101c5ea36e87a4edb63204d2adec.zip |
Add pod list endpoint with pagination, sort...
Diffstat (limited to 'client/src/app/+admin/friends/friend-list/friend-list.component.html')
-rw-r--r-- | client/src/app/+admin/friends/friend-list/friend-list.component.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/client/src/app/+admin/friends/friend-list/friend-list.component.html b/client/src/app/+admin/friends/friend-list/friend-list.component.html index 7887bc5e3..7e92ced54 100644 --- a/client/src/app/+admin/friends/friend-list/friend-list.component.html +++ b/client/src/app/+admin/friends/friend-list/friend-list.component.html | |||
@@ -2,12 +2,15 @@ | |||
2 | <div class="content-padding"> | 2 | <div class="content-padding"> |
3 | <h3>Friends list</h3> | 3 | <h3>Friends list</h3> |
4 | 4 | ||
5 | <p-dataTable [value]="friends"> | 5 | <p-dataTable |
6 | <p-column field="id" header="ID"></p-column> | 6 | [value]="friends" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" |
7 | <p-column field="host" header="Host"></p-column> | 7 | sortField="id" (onLazyLoad)="loadLazy($event)" |
8 | > | ||
9 | <p-column field="id" header="ID" [sortable]="true"></p-column> | ||
10 | <p-column field="host" header="Host" [sortable]="true"></p-column> | ||
8 | <p-column field="email" header="Email"></p-column> | 11 | <p-column field="email" header="Email"></p-column> |
9 | <p-column field="score" header="Score"></p-column> | 12 | <p-column field="score" header="Score" [sortable]="true"></p-column> |
10 | <p-column field="createdAt" header="Created date"></p-column> | 13 | <p-column field="createdAt" header="Created date" [sortable]="true"></p-column> |
11 | <p-column header="Delete" styleClass="action-cell"> | 14 | <p-column header="Delete" styleClass="action-cell"> |
12 | <ng-template pTemplate="body" let-pod="rowData"> | 15 | <ng-template pTemplate="body" let-pod="rowData"> |
13 | <span (click)="removeFriend(pod)" class="glyphicon glyphicon-remove glyphicon-black" title="Remove this pod"></span> | 16 | <span (click)="removeFriend(pod)" class="glyphicon glyphicon-remove glyphicon-black" title="Remove this pod"></span> |