diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-01-08 23:28:03 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-01-08 23:28:08 +0100 |
commit | ae689853d894f0fbb902057cda62b1d782ad8b18 (patch) | |
tree | e173d4be532ec25ca9565cf57989d7559706a20b /client/src/app | |
parent | 5c7a411c45f793b846734053b18511b6528f7d1c (diff) | |
download | PeerTube-ae689853d894f0fbb902057cda62b1d782ad8b18.tar.gz PeerTube-ae689853d894f0fbb902057cda62b1d782ad8b18.tar.zst PeerTube-ae689853d894f0fbb902057cda62b1d782ad8b18.zip |
Display total of number of video comments via pagination
fixes #2391
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comments.component.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.html b/client/src/app/videos/+video-watch/comment/video-comments.component.html index e25efc3ee..2bf52ab86 100644 --- a/client/src/app/videos/+video-watch/comment/video-comments.component.html +++ b/client/src/app/videos/+video-watch/comment/video-comments.component.html | |||
@@ -1,10 +1,10 @@ | |||
1 | <div> | 1 | <div> |
2 | <div class="title-block"> | 2 | <div class="title-block"> |
3 | <div class="title-page title-page-single"> | 3 | <div class="title-page title-page-single"> |
4 | <ng-container *ngIf="comments.length > 0; then hasComments; else noComments"></ng-container> | 4 | <ng-container *ngIf="componentPagination.totalItems > 0; then hasComments; else noComments"></ng-container> |
5 | <ng-template #hasComments> | 5 | <ng-template #hasComments> |
6 | <ng-container i18n *ngIf="comments.length === 1; else manyComments">1 Comment</ng-container> | 6 | <ng-container i18n *ngIf="componentPagination.totalItems === 1; else manyComments">1 Comment</ng-container> |
7 | <ng-template i18n #manyComments>{{ comments.length }} Comments</ng-template> | 7 | <ng-template i18n #manyComments>{{ componentPagination.totalItems }} Comments</ng-template> |
8 | </ng-template> | 8 | </ng-template> |
9 | <ng-template i18n #noComments>Comments</ng-template> | 9 | <ng-template i18n #noComments>Comments</ng-template> |
10 | </div> | 10 | </div> |