Skip to content
Snippets Groups Projects
Unverified Commit ae689853 authored by Rigel Kent's avatar Rigel Kent
Browse files

Display total of number of video comments via pagination

fixes #2391
parent 5c7a411c
No related branches found
No related tags found
No related merge requests found
<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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment