]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comment.component.html
Add a warning when uploading videos using root
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment.component.html
CommitLineData
cf117aaa 1<div class="root-comment">
69222afa
JM
2 <img
3 *ngIf="!comment.isDeleted"
4 class="comment-avatar"
5 [src]="comment.accountAvatarUrl"
6 alt="Avatar"
7 />
8
9 <span
10 *ngIf="comment.isDeleted"
11 class="comment-avatar"
12 ></span>
4635f59d 13
cf117aaa 14 <div class="comment">
69222afa
JM
15 <ng-container *ngIf="!comment.isDeleted">
16 <div *ngIf="highlightedComment === true" class="highlighted-comment" i18n>Highlighted comment</div>
1263fc4e 17
69222afa
JM
18 <div class="comment-account-date">
19 <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account">{{ comment.by }}</a>
20 <a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]" class="comment-date">{{ comment.createdAt | myFromNow }}</a>
21 </div>
22 <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div>
cf117aaa 23
69222afa
JM
24 <div class="comment-actions">
25 <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply" i18n>Reply</div>
26 <div *ngIf="isRemovableByUser()" (click)="onWantToDelete()" class="comment-action-delete" i18n>Delete</div>
27 </div>
28 </ng-container>
29
30 <ng-container *ngIf="comment.isDeleted">
31 <div class="comment-account-date">
32 <span class="comment-account" i18n>Deleted</span>
33 <a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]" class="comment-date">{{ comment.createdAt | myFromNow }}</a>
34 </div>
35
36 <div *ngIf="comment.isDeleted" class="comment-html comment-html-deleted">
37 <i i18n>This comment has been deleted</i>
38 </div>
39 </ng-container>
4635f59d 40
cf117aaa 41 <my-video-comment-add
69222afa 42 *ngIf="!comment.isDeleted && isUserLoggedIn() && inReplyToCommentId === comment.id"
cf117aaa
C
43 [user]="user"
44 [video]="video"
45 [parentComment]="comment"
d7e70384 46 [parentComments]="newParentComments"
cf117aaa
C
47 [focusOnInit]="true"
48 (commentCreated)="onCommentReplyCreated($event)"
49 ></my-video-comment-add>
4635f59d 50
cf117aaa
C
51 <div *ngIf="commentTree" class="children">
52 <div *ngFor="let commentChild of commentTree.children">
53 <my-video-comment
54 [comment]="commentChild.comment"
55 [video]="video"
56 [inReplyToCommentId]="inReplyToCommentId"
57 [commentTree]="commentChild"
d7e70384 58 [parentComments]="newParentComments"
4cb6d457
C
59 (wantedToReply)="onWantToReply($event)"
60 (wantedToDelete)="onWantToDelete($event)"
cf117aaa
C
61 (resetReply)="onResetReply()"
62 ></my-video-comment>
63 </div>
4635f59d
C
64 </div>
65 </div>
66</div>