Skip to content

Commit

Permalink
Show number of comments under a video in watch view
Browse files Browse the repository at this point in the history
resolves #2338
  • Loading branch information
rigelk committed Dec 13, 2019
1 parent 3adf319 commit 44efbeb
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<div>
<div class="title-block">
<div i18n class="title-page title-page-single">
Comments
<div class="title-page title-page-single">
<ng-container *ngIf="comments.length > 0; then hasComments; else noComments"></ng-container>
<ng-template #hasComments>
<ng-container i18n *ngIf="comments.length === 1; else manyComments">1 Comment</ng-container>
<ng-template i18n #manyComments>{{ comments.length }} Comments</ng-template>
</ng-template>
<ng-template i18n #noComments>Comments</ng-template>
</div>

<my-feed [syndicationItems]="syndicationItems"></my-feed>
Expand Down

0 comments on commit 44efbeb

Please sign in to comment.