]>
Commit | Line | Data |
---|---|---|
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 | 6 | |
c199c427 | 7 | <my-feed [syndicationItems]="syndicationItems"></my-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()" |
ad453580 | 24 | [dataObservable]="onDataSubject.asObservable()" |
47564bbe | 25 | > |
bf079b7b | 26 | <div #commentHighlightBlock id="highlighted-comment"> |
1263fc4e | 27 | <my-video-comment |
bf079b7b | 28 | *ngIf="highlightedThread" |
b1d40cff C |
29 | [comment]="highlightedThread" |
30 | [video]="video" | |
31 | [inReplyToCommentId]="inReplyToCommentId" | |
32 | [commentTree]="threadComments[highlightedThread.id]" | |
33 | [highlightedComment]="true" | |
34 | (wantedToReply)="onWantedToReply($event)" | |
35 | (wantedToDelete)="onWantedToDelete($event)" | |
36 | (threadCreated)="onThreadCreated($event)" | |
37 | (resetReply)="onResetReply()" | |
1263fc4e C |
38 | ></my-video-comment> |
39 | </div> | |
40 | ||
47564bbe C |
41 | <div *ngFor="let comment of comments"> |
42 | <my-video-comment | |
5b8072ee | 43 | *ngIf="!highlightedThread || comment.id !== highlightedThread.id" |
47564bbe C |
44 | [comment]="comment" |
45 | [video]="video" | |
46 | [inReplyToCommentId]="inReplyToCommentId" | |
47 | [commentTree]="threadComments[comment.id]" | |
48 | (wantedToReply)="onWantedToReply($event)" | |
4cb6d457 C |
49 | (wantedToDelete)="onWantedToDelete($event)" |
50 | (threadCreated)="onThreadCreated($event)" | |
47564bbe C |
51 | (resetReply)="onResetReply()" |
52 | ></my-video-comment> | |
4635f59d | 53 | |
1263fc4e | 54 | <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies"> |
b1d40cff | 55 | <ng-container i18n>View all {{ comment.totalReplies }} replies</ng-container> |
47564bbe C |
56 | |
57 | <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span> | |
b28e4e5e | 58 | <my-small-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-small-loader> |
47564bbe | 59 | </div> |
4635f59d C |
60 | </div> |
61 | </div> | |
47564bbe C |
62 | </ng-template> |
63 | ||
b1d40cff | 64 | <div *ngIf="video.commentsEnabled === false" i18n> |
47564bbe | 65 | Comments are disabled. |
4635f59d C |
66 | </div> |
67 | </div> |