]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - 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
1 <div>
2 <div class="title-block">
3 <div i18n class="title-page title-page-single">
4 Comments
5 </div>
6
7 <my-video-feed [syndicationItems]="syndicationItems"></my-video-feed>
8 </div>
9
10 <ng-template [ngIf]="video.commentsEnabled === true">
11 <my-video-comment-add
12 [video]="video"
13 [user]="user"
14 (commentCreated)="onCommentThreadCreated($event)"
15 ></my-video-comment-add>
16
17 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0" i18n>No comments.</div>
18
19 <div
20 class="comment-threads"
21 myInfiniteScroller
22 [autoInit]="true"
23 (nearOfBottom)="onNearOfBottom()"
24 >
25 <div #commentHighlightBlock id="highlighted-comment">
26 <my-video-comment
27 *ngIf="highlightedThread"
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()"
37 ></my-video-comment>
38 </div>
39
40 <div *ngFor="let comment of comments">
41 <my-video-comment
42 *ngIf="!highlightedThread || comment.id !== highlightedThread.id"
43 [comment]="comment"
44 [video]="video"
45 [inReplyToCommentId]="inReplyToCommentId"
46 [commentTree]="threadComments[comment.id]"
47 (wantedToReply)="onWantedToReply($event)"
48 (wantedToDelete)="onWantedToDelete($event)"
49 (threadCreated)="onThreadCreated($event)"
50 (resetReply)="onResetReply()"
51 ></my-video-comment>
52
53 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies">
54 <ng-container i18n>View all {{ comment.totalReplies }} replies</ng-container>
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>
59 </div>
60 </div>
61 </ng-template>
62
63 <div *ngIf="video.commentsEnabled === false" i18n>
64 Comments are disabled.
65 </div>
66 </div>