1 <div class=
"root-comment">
4 *
ngIf=
"!comment.isDeleted"
6 [src]=
"comment.accountAvatarUrl"
10 <div class=
"vertical-border"></div>
14 <span *
ngIf=
"comment.isDeleted" class=
"comment-avatar"></span>
17 <ng-container *
ngIf=
"!comment.isDeleted">
18 <div *
ngIf=
"highlightedComment === true" class=
"highlighted-comment" i18n
>Highlighted comment
</div>
20 <div class=
"comment-account-date">
21 <a [href]=
"comment.account.url" target=
"_blank" rel=
"noopener noreferrer" class=
"comment-account">{{ comment.by }}
</a>
22 <a [routerLink]=
"['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
23 class=
"comment-date">{{ comment.createdAt | myFromNow }}
</a>
25 <div class=
"comment-html" [innerHTML]=
"sanitizedCommentHTML"></div>
27 <div class=
"comment-actions">
28 <div *
ngIf=
"isUserLoggedIn()" (click)=
"onWantToReply()" class=
"comment-action-reply" i18n
>Reply
</div>
29 <div *
ngIf=
"isRemovableByUser()" (click)=
"onWantToDelete()" class=
"comment-action-delete" i18n
>Delete
</div>
33 <ng-container *
ngIf=
"comment.isDeleted">
34 <div class=
"comment-account-date">
35 <span class=
"comment-account" i18n
>Deleted
</span>
36 <a [routerLink]=
"['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
37 class=
"comment-date">{{ comment.createdAt | myFromNow }}
</a>
40 <div *
ngIf=
"comment.isDeleted" class=
"comment-html comment-html-deleted">
41 <i i18n
>This comment has been deleted
</i>
46 *
ngIf=
"!comment.isDeleted && isUserLoggedIn() && inReplyToCommentId === comment.id"
49 [parentComment]=
"comment"
50 [parentComments]=
"newParentComments"
52 (commentCreated)=
"onCommentReplyCreated($event)"
53 ></my-video-comment-add>
55 <div *
ngIf=
"commentTree" class=
"children">
56 <div *
ngFor=
"let commentChild of commentTree.children">
58 [comment]=
"commentChild.comment"
60 [inReplyToCommentId]=
"inReplyToCommentId"
61 [commentTree]=
"commentChild"
62 [parentComments]=
"newParentComments"
63 (wantedToReply)=
"onWantToReply($event)"
64 (wantedToDelete)=
"onWantToDelete($event)"
65 (resetReply)=
"onResetReply()"