1 <div *
ngIf=
"isNotDeletedOrDeletedWithReplies()" class=
"root-comment">
3 <a *
ngIf=
"!comment.isDeleted" [href]=
"comment.account.url" target=
"_blank" rel=
"noopener noreferrer">
6 [src]=
"comment.accountAvatarUrl"
7 (error)=
"switchToDefaultAvatar($event)"
12 <div class=
"vertical-border"></div>
15 <div class=
"right" [ngClass]=
"{ 'mb-3': firstInThread }">
16 <span *
ngIf=
"comment.isDeleted" class=
"comment-avatar"></span>
19 <ng-container *
ngIf=
"!comment.isDeleted">
20 <div *
ngIf=
"highlightedComment === true" class=
"highlighted-comment" i18n
>Highlighted comment
</div>
22 <div class=
"comment-account-date">
23 <div class=
"comment-account">
24 <a [routerLink]=
"[ '/accounts', comment.by ]">
25 <span class=
"comment-account-name" [ngClass]=
"{ 'video-author': video.account.id === comment.account.id }">
26 {{ comment.account.displayName }}
29 <span class=
"comment-account-fid ml-1">{{ comment.by }}
</span>
33 <a [routerLink]=
"['/videos/watch', video.uuid, { 'threadId': comment.threadId }]" class=
"comment-date" [title]=
"comment.createdAt">
34 {{ comment.createdAt | myFromNow }}
40 [innerHTML]=
"sanitizedCommentHTML"
41 (timestampClicked)=
"handleTimestampClicked($event)"
42 timestampRouteTransformer
45 <div class=
"comment-actions">
46 <div *
ngIf=
"isUserLoggedIn()" tabindex=
0 (click)=
"onWantToReply()" class=
"comment-action-reply" i18n
>Reply
</div>
48 <my-user-moderation-dropdown
49 [prependActions]=
"prependModerationActions" tabindex=
0
50 buttonSize=
"small" [account]=
"commentAccount" [user]=
"commentUser" i18n-label
label=
"Options" placement=
"bottom-left auto"
51 ></my-user-moderation-dropdown>
55 <ng-container *
ngIf=
"comment.isDeleted">
56 <div class=
"comment-account-date">
57 <span class=
"comment-account" i18n
>Deleted
</span>
58 <a [routerLink]=
"['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
59 class=
"comment-date">{{ comment.createdAt | myFromNow }}
</a>
62 <div class=
"comment-html comment-html-deleted">
63 <i i18n
>This comment has been deleted
</i>
68 *
ngIf=
"!comment.isDeleted && isUserLoggedIn() && inReplyToCommentId === comment.id"
71 [parentComment]=
"comment"
72 [parentComments]=
"newParentComments"
74 (commentCreated)=
"onCommentReplyCreated($event)"
75 (cancel)=
"onResetReply()"
76 [textValue]=
"redraftValue"
77 ></my-video-comment-add>
79 <div *
ngIf=
"commentTree" class=
"children">
80 <div *
ngFor=
"let commentChild of commentTree.children">
82 [comment]=
"commentChild.comment"
84 [inReplyToCommentId]=
"inReplyToCommentId"
85 [commentTree]=
"commentChild"
86 [parentComments]=
"newParentComments"
87 (wantedToReply)=
"onWantToReply($event)"
88 (wantedToDelete)=
"onWantToDelete($event)"
89 (wantedToRedraft)=
"onWantToRedraft($event)"
90 (resetReply)=
"onResetReply()"
91 (timestampClicked)=
"handleTimestampClicked($event)"
92 [redraftValue]=
"redraftValue"
97 <ng-content></ng-content>
102 <ng-container *
ngIf=
"prependModerationActions">
103 <my-comment-report #commentReportModal [comment]=
"comment"></my-comment-report>