1 <div class=
"root-comment">
2 <img [src]=
"getAvatarUrl(comment.account)" alt=
"Avatar" />
5 <div class=
"comment-account-date">
6 <a target=
"_blank" [href]=
"comment.account.url" class=
"comment-account">{{ comment.by }}
</a>
7 <div class=
"comment-date">{{ comment.createdAt | myFromNow }}
</div>
9 <div class=
"comment-html" [innerHTML]=
"sanitizedCommentHTML"></div>
11 <div class=
"comment-actions">
12 <div *
ngIf=
"isUserLoggedIn()" (click)=
"onWantToReply()" class=
"comment-action-reply">Reply
</div>
13 <div *
ngIf=
"isRemovableByUser()" (click)=
"onWantToDelete()" class=
"comment-action-delete">Delete
</div>
17 *
ngIf=
"isUserLoggedIn() && inReplyToCommentId === comment.id"
20 [parentComment]=
"comment"
21 [parentComments]=
"newParentComments"
23 (commentCreated)=
"onCommentReplyCreated($event)"
24 ></my-video-comment-add>
26 <div *
ngIf=
"commentTree" class=
"children">
27 <div *
ngFor=
"let commentChild of commentTree.children">
29 [comment]=
"commentChild.comment"
31 [inReplyToCommentId]=
"inReplyToCommentId"
32 [commentTree]=
"commentChild"
33 [parentComments]=
"newParentComments"
34 (wantedToReply)=
"onWantToReply($event)"
35 (wantedToDelete)=
"onWantToDelete($event)"
36 (resetReply)=
"onResetReply()"