2017-12-27 16:11:53 +01:00
|
|
|
<div>
|
2018-05-07 17:40:46 +02:00
|
|
|
<div class="title-block">
|
2018-06-05 16:52:25 +02:00
|
|
|
<div i18n class="title-page title-page-single">
|
2018-05-07 17:40:46 +02:00
|
|
|
Comments
|
|
|
|
</div>
|
2018-10-02 11:14:59 +02:00
|
|
|
|
2018-10-18 14:35:31 +02:00
|
|
|
<my-feed [syndicationItems]="syndicationItems"></my-feed>
|
2017-12-27 16:11:53 +01:00
|
|
|
</div>
|
|
|
|
|
2018-01-03 10:12:36 +01:00
|
|
|
<ng-template [ngIf]="video.commentsEnabled === true">
|
|
|
|
<my-video-comment-add
|
|
|
|
[video]="video"
|
2018-01-03 17:25:47 +01:00
|
|
|
[user]="user"
|
2018-01-03 10:12:36 +01:00
|
|
|
(commentCreated)="onCommentThreadCreated($event)"
|
|
|
|
></my-video-comment-add>
|
2017-12-27 16:11:53 +01:00
|
|
|
|
2018-06-04 16:21:17 +02:00
|
|
|
<div *ngIf="componentPagination.totalItems === 0 && comments.length === 0" i18n>No comments.</div>
|
2017-12-27 16:11:53 +01:00
|
|
|
|
2018-01-03 10:12:36 +01:00
|
|
|
<div
|
|
|
|
class="comment-threads"
|
2018-02-13 14:11:05 +01:00
|
|
|
myInfiniteScroller
|
2018-08-24 10:31:56 +02:00
|
|
|
[autoInit]="true"
|
2018-02-13 14:11:05 +01:00
|
|
|
(nearOfBottom)="onNearOfBottom()"
|
2019-08-02 14:49:25 +02:00
|
|
|
[dataObservable]="onDataSubject.asObservable()"
|
2018-01-03 10:12:36 +01:00
|
|
|
>
|
2018-06-14 11:25:49 +02:00
|
|
|
<div #commentHighlightBlock id="highlighted-comment">
|
2018-02-19 10:38:24 +01:00
|
|
|
<my-video-comment
|
2018-06-14 11:25:49 +02:00
|
|
|
*ngIf="highlightedThread"
|
2018-06-04 16:21:17 +02:00
|
|
|
[comment]="highlightedThread"
|
|
|
|
[video]="video"
|
|
|
|
[inReplyToCommentId]="inReplyToCommentId"
|
|
|
|
[commentTree]="threadComments[highlightedThread.id]"
|
|
|
|
[highlightedComment]="true"
|
|
|
|
(wantedToReply)="onWantedToReply($event)"
|
|
|
|
(wantedToDelete)="onWantedToDelete($event)"
|
|
|
|
(threadCreated)="onThreadCreated($event)"
|
|
|
|
(resetReply)="onResetReply()"
|
2018-02-19 10:38:24 +01:00
|
|
|
></my-video-comment>
|
|
|
|
</div>
|
|
|
|
|
2018-01-03 10:12:36 +01:00
|
|
|
<div *ngFor="let comment of comments">
|
|
|
|
<my-video-comment
|
2018-02-21 17:46:04 +01:00
|
|
|
*ngIf="!highlightedThread || comment.id !== highlightedThread.id"
|
2018-01-03 10:12:36 +01:00
|
|
|
[comment]="comment"
|
|
|
|
[video]="video"
|
|
|
|
[inReplyToCommentId]="inReplyToCommentId"
|
|
|
|
[commentTree]="threadComments[comment.id]"
|
|
|
|
(wantedToReply)="onWantedToReply($event)"
|
2018-01-04 11:19:16 +01:00
|
|
|
(wantedToDelete)="onWantedToDelete($event)"
|
|
|
|
(threadCreated)="onThreadCreated($event)"
|
2018-01-03 10:12:36 +01:00
|
|
|
(resetReply)="onResetReply()"
|
|
|
|
></my-video-comment>
|
2017-12-27 16:11:53 +01:00
|
|
|
|
2018-02-19 10:38:24 +01:00
|
|
|
<div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies">
|
2018-06-04 16:21:17 +02:00
|
|
|
<ng-container i18n>View all {{ comment.totalReplies }} replies</ng-container>
|
2018-01-03 10:12:36 +01:00
|
|
|
|
|
|
|
<span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span>
|
2019-02-20 10:16:04 +01:00
|
|
|
<my-small-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-small-loader>
|
2018-01-03 10:12:36 +01:00
|
|
|
</div>
|
2017-12-27 16:11:53 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-03 10:12:36 +01:00
|
|
|
</ng-template>
|
|
|
|
|
2018-06-04 16:21:17 +02:00
|
|
|
<div *ngIf="video.commentsEnabled === false" i18n>
|
2018-01-03 10:12:36 +01:00
|
|
|
Comments are disabled.
|
2017-12-27 16:11:53 +01:00
|
|
|
</div>
|
|
|
|
</div>
|