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>
28 [innerHTML]=
"sanitizedCommentHTML"
29 (timestampClicked)=
"handleTimestampClicked($event)"
30 timestampRouteTransformer
33 <div class=
"comment-actions">
34 <div *
ngIf=
"isUserLoggedIn()" (click)=
"onWantToReply()" class=
"comment-action-reply" i18n
>Reply
</div>
35 <div *
ngIf=
"isRemovableByUser()" (click)=
"onWantToDelete()" class=
"comment-action-delete" i18n
>Delete
</div>
39 <ng-container *
ngIf=
"comment.isDeleted">
40 <div class=
"comment-account-date">
41 <span class=
"comment-account" i18n
>Deleted
</span>
42 <a [routerLink]=
"['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
43 class=
"comment-date">{{ comment.createdAt | myFromNow }}
</a>
46 <div *
ngIf=
"comment.isDeleted" class=
"comment-html comment-html-deleted">
47 <i i18n
>This comment has been deleted
</i>
52 *
ngIf=
"!comment.isDeleted && isUserLoggedIn() && inReplyToCommentId === comment.id"
55 [parentComment]=
"comment"
56 [parentComments]=
"newParentComments"
58 (commentCreated)=
"onCommentReplyCreated($event)"
59 (cancel)=
"onResetReply()"
60 ></my-video-comment-add>
62 <div *
ngIf=
"commentTree" class=
"children">
63 <div *
ngFor=
"let commentChild of commentTree.children">
65 [comment]=
"commentChild.comment"
67 [inReplyToCommentId]=
"inReplyToCommentId"
68 [commentTree]=
"commentChild"
69 [parentComments]=
"newParentComments"
70 (wantedToReply)=
"onWantToReply($event)"
71 (wantedToDelete)=
"onWantToDelete($event)"
72 (resetReply)=
"onResetReply()"
73 (timestampClicked)=
"handleTimestampClicked($event)"