1 <div *
ngIf=
"isCommentDisplayed()" class=
"root-comment" [ngClass]=
"{ 'is-child': isChild() }">
3 <my-actor-avatar *
ngIf=
"!comment.isDeleted" [href]=
"comment.account.url" [account]=
"comment.account" [size]=
"isChild() ? '25' : '36'"></my-actor-avatar>
4 <div class=
"vertical-border"></div>
7 <div class=
"right" [ngClass]=
"{ 'mb-3': firstInThread }">
9 <ng-container *
ngIf=
"!comment.isDeleted">
10 <div *
ngIf=
"highlightedComment === true" class=
"highlighted-comment" i18n
>Highlighted comment
</div>
12 <div class=
"comment-account-date">
13 <div class=
"comment-account">
14 <a [routerLink]=
"[ '/a', comment.by ]">
15 <span class=
"comment-account-name" [ngClass]=
"{ 'video-author': video.account.id === comment.account.id }">
16 {{ comment.account.displayName }}
19 <span class=
"comment-account-fid ms-1">{{ comment.by }}
</span>
23 <a [routerLink]=
"['/w', video.shortUUID, { 'threadId': comment.threadId }]" class=
"comment-date" [title]=
"comment.createdAt">
24 {{ comment.createdAt | myFromNow }}
30 [innerHTML]=
"sanitizedCommentHTML"
31 (timestampClicked)=
"handleTimestampClicked($event)"
32 myTimestampRouteTransformer
35 <div class=
"comment-actions">
36 <div tabindex=
0 (click)=
"onWantToReply()" class=
"comment-action-reply" i18n
>Reply
</div>
38 <my-user-moderation-dropdown
39 [prependActions]=
"prependModerationActions" tabindex=
0 [buttonStyled]=
"false"
40 buttonSize=
"small" [account]=
"commentAccount" [user]=
"commentUser" i18n-label
label=
"Options" placement=
"bottom-left auto"
41 ></my-user-moderation-dropdown>
45 <ng-container *
ngIf=
"comment.isDeleted">
46 <div class=
"comment-account-date">
47 <span class=
"comment-account" i18n
>Deleted
</span>
48 <a [routerLink]=
"['/w', video.shortUUID, { 'threadId': comment.threadId }]"
49 class=
"comment-date">{{ comment.createdAt | myFromNow }}
</a>
52 <div class=
"comment-html comment-html-deleted">
53 <i i18n
>This comment has been deleted
</i>
58 *
ngIf=
"!comment.isDeleted && inReplyToCommentId === comment.id"
61 [parentComment]=
"comment"
62 [parentComments]=
"newParentComments"
64 (commentCreated)=
"onCommentReplyCreated($event)"
65 (cancel)=
"onResetReply()"
66 [textValue]=
"redraftValue"
67 ></my-video-comment-add>
69 <div *
ngIf=
"commentTree">
70 <div *
ngFor=
"let commentChild of commentTree.children">
72 [comment]=
"commentChild.comment"
74 [inReplyToCommentId]=
"inReplyToCommentId"
75 [commentTree]=
"commentChild"
76 [parentComments]=
"newParentComments"
77 (wantedToReply)=
"onWantToReply($event)"
78 (wantedToDelete)=
"onWantToDelete($event)"
79 (wantedToRedraft)=
"onWantToRedraft($event)"
80 (resetReply)=
"onResetReply()"
81 (timestampClicked)=
"handleTimestampClicked($event)"
82 [redraftValue]=
"redraftValue"
87 <ng-content></ng-content>
92 <ng-container *
ngIf=
"prependModerationActions">
93 <my-comment-report #commentReportModal [comment]=
"comment"></my-comment-report>