Display total of number of video comments via pagination

fixes #2391
pull/2393/head
Rigel Kent 2020-01-08 23:28:03 +01:00
parent 5c7a411c45
commit ae689853d8
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
<div> <div>
<div class="title-block"> <div class="title-block">
<div class="title-page title-page-single"> <div class="title-page title-page-single">
<ng-container *ngIf="comments.length > 0; then hasComments; else noComments"></ng-container> <ng-container *ngIf="componentPagination.totalItems > 0; then hasComments; else noComments"></ng-container>
<ng-template #hasComments> <ng-template #hasComments>
<ng-container i18n *ngIf="comments.length === 1; else manyComments">1 Comment</ng-container> <ng-container i18n *ngIf="componentPagination.totalItems === 1; else manyComments">1 Comment</ng-container>
<ng-template i18n #manyComments>{{ comments.length }} Comments</ng-template> <ng-template i18n #manyComments>{{ componentPagination.totalItems }} Comments</ng-template>
</ng-template> </ng-template>
<ng-template i18n #noComments>Comments</ng-template> <ng-template i18n #noComments>Comments</ng-template>
</div> </div>