aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-13 22:23:13 +0100
committerRigel Kent <sendmemail@rigelk.eu>2019-12-13 22:23:26 +0100
commit44efbebac43c2bac75744399dc1176dce7ba3277 (patch)
tree86565e827b1961534d88dc00334282c52c2079b9 /client/src
parent3adf3196c53c9742dcb633490019b6a18fb04a2e (diff)
downloadPeerTube-44efbebac43c2bac75744399dc1176dce7ba3277.tar.gz
PeerTube-44efbebac43c2bac75744399dc1176dce7ba3277.tar.zst
PeerTube-44efbebac43c2bac75744399dc1176dce7ba3277.zip
Show number of comments under a video in watch view
resolves #2338
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comments.component.html9
1 files changed, 7 insertions, 2 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 be20a8490..844263ddd 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,7 +1,12 @@
1<div> 1<div>
2 <div class="title-block"> 2 <div class="title-block">
3 <div i18n class="title-page title-page-single"> 3 <div class="title-page title-page-single">
4 Comments 4 <ng-container *ngIf="comments.length > 0; then hasComments; else noComments"></ng-container>
5 <ng-template #hasComments>
6 <ng-container i18n *ngIf="comments.length === 1; else manyComments">1 Comment</ng-container>
7 <ng-template i18n #manyComments>{{ comments.length }} Comments</ng-template>
8 </ng-template>
9 <ng-template i18n #noComments>Comments</ng-template>
5 </div> 10 </div>
6 11
7 <my-feed [syndicationItems]="syndicationItems"></my-feed> 12 <my-feed [syndicationItems]="syndicationItems"></my-feed>