diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-22 10:43:06 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-22 10:44:35 +0200 |
commit | 322940742b4dca168de6dfed0d1ebf5926dab528 (patch) | |
tree | 7b7fdb77595aa7d6a89d1045ab6012a9e1d68aab /client/angular/videos/components/list/videos-list.component.html | |
parent | 46246b5f194caafba4e3a72e9365acd8b35785de (diff) | |
download | PeerTube-322940742b4dca168de6dfed0d1ebf5926dab528.tar.gz PeerTube-322940742b4dca168de6dfed0d1ebf5926dab528.tar.zst PeerTube-322940742b4dca168de6dfed0d1ebf5926dab528.zip |
Add pagination support to the client
Diffstat (limited to 'client/angular/videos/components/list/videos-list.component.html')
-rw-r--r-- | client/angular/videos/components/list/videos-list.component.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/client/angular/videos/components/list/videos-list.component.html b/client/angular/videos/components/list/videos-list.component.html index 776339d10..39cdf29ba 100644 --- a/client/angular/videos/components/list/videos-list.component.html +++ b/client/angular/videos/components/list/videos-list.component.html | |||
@@ -1,3 +1,11 @@ | |||
1 | <div *ngIf="videos.length === 0">There is no video.</div> | 1 | <div class="videos-miniatures"> |
2 | <my-video-miniature *ngFor="let video of videos" [video]="video" [user]="user" (removed)="onRemoved(video)"> | 2 | <div *ngIf="videos.length === 0">There is no video.</div> |
3 | </my-video-miniature> | 3 | |
4 | <my-video-miniature *ngFor="let video of videos" [video]="video" [user]="user" (removed)="onRemoved(video)"> | ||
5 | </my-video-miniature> | ||
6 | </div> | ||
7 | |||
8 | <pagination | ||
9 | [totalItems]="pagination.total" [itemsPerPage]="pagination.itemsPerPage" [(ngModel)]="pagination.currentPage" | ||
10 | (ngModelChange)="getVideos()" | ||
11 | ></pagination> | ||