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">
23 <span class=
"comment-account-name" [ngClass]=
"{ 'video-author': video.account.id === comment.account.id }">{{ comment.account.displayName }}
</span>
24 <span class=
"comment-account-fid ml-1">{{ comment.by }}
</span>
26 <a [routerLink]=
"['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
27 class=
"comment-date" [title]=
"comment.createdAt">{{ comment.createdAt | myFromNow }}
</a>
31 [innerHTML]=
"sanitizedCommentHTML"
32 (timestampClicked)=
"handleTimestampClicked($event)"
33 timestampRouteTransformer
36 <div class=
"comment-actions">
37 <div *
ngIf=
"isUserLoggedIn()" (click)=
"onWantToReply()" class=
"comment-action-reply" i18n
>Reply
</div>
38 <div *
ngIf=
"isRemovableByUser()" (click)=
"onWantToDelete()" class=
"comment-action-delete" i18n
>Delete
</div>
42 <ng-container *
ngIf=
"comment.isDeleted">
43 <div class=
"comment-account-date">
44 <span class=
"comment-account" i18n
>Deleted
</span>
45 <a [routerLink]=
"['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
46 class=
"comment-date">{{ comment.createdAt | myFromNow }}
</a>
49 <div *
ngIf=
"comment.isDeleted" class=
"comment-html comment-html-deleted">
50 <i i18n
>This comment has been deleted
</i>
55 *
ngIf=
"!comment.isDeleted && isUserLoggedIn() && inReplyToCommentId === comment.id"
58 [parentComment]=
"comment"
59 [parentComments]=
"newParentComments"
61 (commentCreated)=
"onCommentReplyCreated($event)"
62 (cancel)=
"onResetReply()"
63 ></my-video-comment-add>
65 <div *
ngIf=
"commentTree" class=
"children">
66 <div *
ngFor=
"let commentChild of commentTree.children">
68 [comment]=
"commentChild.comment"
70 [inReplyToCommentId]=
"inReplyToCommentId"
71 [commentTree]=
"commentChild"
72 [parentComments]=
"newParentComments"
73 (wantedToReply)=
"onWantToReply($event)"
74 (wantedToDelete)=
"onWantToDelete($event)"
75 (resetReply)=
"onResetReply()"
76 (timestampClicked)=
"handleTimestampClicked($event)"