]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comments.component.html
Add comments feeds popover in watch page
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comments.component.html
CommitLineData
4635f59d 1<div>
169310b2 2 <div class="title-block">
8c40b7dc 3 <div i18n class="title-page title-page-single">
169310b2
R
4 Comments
5 </div>
53877968
C
6
7 <my-video-feed [syndicationItems]="syndicationItems"></my-video-feed>
4635f59d
C
8 </div>
9
47564bbe
C
10 <ng-template [ngIf]="video.commentsEnabled === true">
11 <my-video-comment-add
47564bbe 12 [video]="video"
cf117aaa 13 [user]="user"
47564bbe
C
14 (commentCreated)="onCommentThreadCreated($event)"
15 ></my-video-comment-add>
4635f59d 16
b1d40cff 17 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0" i18n>No comments.</div>
4635f59d 18
47564bbe
C
19 <div
20 class="comment-threads"
0cd4344f 21 myInfiniteScroller
aa55a4da 22 [autoInit]="true"
0cd4344f 23 (nearOfBottom)="onNearOfBottom()"
47564bbe 24 >
bf079b7b 25 <div #commentHighlightBlock id="highlighted-comment">
1263fc4e 26 <my-video-comment
bf079b7b 27 *ngIf="highlightedThread"
b1d40cff
C
28 [comment]="highlightedThread"
29 [video]="video"
30 [inReplyToCommentId]="inReplyToCommentId"
31 [commentTree]="threadComments[highlightedThread.id]"
32 [highlightedComment]="true"
33 (wantedToReply)="onWantedToReply($event)"
34 (wantedToDelete)="onWantedToDelete($event)"
35 (threadCreated)="onThreadCreated($event)"
36 (resetReply)="onResetReply()"
1263fc4e
C
37 ></my-video-comment>
38 </div>
39
47564bbe
C
40 <div *ngFor="let comment of comments">
41 <my-video-comment
5b8072ee 42 *ngIf="!highlightedThread || comment.id !== highlightedThread.id"
47564bbe
C
43 [comment]="comment"
44 [video]="video"
45 [inReplyToCommentId]="inReplyToCommentId"
46 [commentTree]="threadComments[comment.id]"
47 (wantedToReply)="onWantedToReply($event)"
4cb6d457
C
48 (wantedToDelete)="onWantedToDelete($event)"
49 (threadCreated)="onThreadCreated($event)"
47564bbe
C
50 (resetReply)="onResetReply()"
51 ></my-video-comment>
4635f59d 52
1263fc4e 53 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies">
b1d40cff 54 <ng-container i18n>View all {{ comment.totalReplies }} replies</ng-container>
47564bbe
C
55
56 <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span>
57 <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader>
58 </div>
4635f59d
C
59 </div>
60 </div>
47564bbe
C
61 </ng-template>
62
b1d40cff 63 <div *ngIf="video.commentsEnabled === false" i18n>
47564bbe 64 Comments are disabled.
4635f59d
C
65 </div>
66</div>