mirror of https://github.com/Chocobozzz/PeerTube
parent
5c7a411c45
commit
ae689853d8
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue