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