]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comment.component.html
Fix other videos not displayed in video watch
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment.component.html
CommitLineData
cf117aaa
C
1<div class="root-comment">
2 <img [src]="getAvatarUrl(comment.account)" alt="Avatar" />
4635f59d 3
cf117aaa
C
4 <div class="comment">
5 <div class="comment-account-date">
4cb6d457 6 <a target="_blank" [href]="comment.account.url" class="comment-account">{{ comment.by }}</a>
cf117aaa
C
7 <div class="comment-date">{{ comment.createdAt | myFromNow }}</div>
8 </div>
2890b615 9 <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div>
cf117aaa
C
10
11 <div class="comment-actions">
12 <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply">Reply</div>
4cb6d457 13 <div *ngIf="isRemovableByUser()" (click)="onWantToDelete()" class="comment-action-delete">Delete</div>
cf117aaa 14 </div>
4635f59d 15
cf117aaa
C
16 <my-video-comment-add
17 *ngIf="isUserLoggedIn() && inReplyToCommentId === comment.id"
18 [user]="user"
19 [video]="video"
20 [parentComment]="comment"
d7e70384 21 [parentComments]="newParentComments"
cf117aaa
C
22 [focusOnInit]="true"
23 (commentCreated)="onCommentReplyCreated($event)"
24 ></my-video-comment-add>
4635f59d 25
cf117aaa
C
26 <div *ngIf="commentTree" class="children">
27 <div *ngFor="let commentChild of commentTree.children">
28 <my-video-comment
29 [comment]="commentChild.comment"
30 [video]="video"
31 [inReplyToCommentId]="inReplyToCommentId"
32 [commentTree]="commentChild"
d7e70384 33 [parentComments]="newParentComments"
4cb6d457
C
34 (wantedToReply)="onWantToReply($event)"
35 (wantedToDelete)="onWantToDelete($event)"
cf117aaa
C
36 (resetReply)="onResetReply()"
37 ></my-video-comment>
38 </div>
4635f59d
C
39 </div>
40 </div>
41</div>