1 <div class=
"root-comment">
2 <img [src]=
"comment.accountAvatarUrl" alt=
"Avatar" />
5 <div *
ngIf=
"highlightedComment === true" class=
"highlighted-comment" i18n
>Highlighted comment
</div>
7 <div class=
"comment-account-date">
8 <a [href]=
"comment.account.url" target=
"_blank" rel=
"noopener noreferrer" class=
"comment-account">{{ comment.by }}
</a>
9 <a [routerLink]=
"['/videos/watch', video.uuid, { 'threadId': comment.threadId }]" class=
"comment-date">{{ comment.createdAt | myFromNow }}
</a>
11 <div class=
"comment-html" [innerHTML]=
"sanitizedCommentHTML"></div>
13 <div class=
"comment-actions">
14 <div *
ngIf=
"isUserLoggedIn()" (click)=
"onWantToReply()" class=
"comment-action-reply" i18n
>Reply
</div>
15 <div *
ngIf=
"isRemovableByUser()" (click)=
"onWantToDelete()" class=
"comment-action-delete" i18n
>Delete
</div>
19 *
ngIf=
"isUserLoggedIn() && inReplyToCommentId === comment.id"
22 [parentComment]=
"comment"
23 [parentComments]=
"newParentComments"
25 (commentCreated)=
"onCommentReplyCreated($event)"
26 ></my-video-comment-add>
28 <div *
ngIf=
"commentTree" class=
"children">
29 <div *
ngFor=
"let commentChild of commentTree.children">
31 [comment]=
"commentChild.comment"
33 [inReplyToCommentId]=
"inReplyToCommentId"
34 [commentTree]=
"commentChild"
35 [parentComments]=
"newParentComments"
36 (wantedToReply)=
"onWantToReply($event)"
37 (wantedToDelete)=
"onWantToDelete($event)"
38 (resetReply)=
"onResetReply()"