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