]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/comment/video-comment.component.html
Add avatar in comments
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment.component.html
1 <div class="root-comment">
2 <img [src]="getAvatarUrl(comment.account)" alt="Avatar" />
3
4 <div class="comment">
5 <div class="comment-account-date">
6 <div class="comment-account">{{ comment.by }}</div>
7 <div class="comment-date">{{ comment.createdAt | myFromNow }}</div>
8 </div>
9 <div>{{ comment.text }}</div>
10
11 <div class="comment-actions">
12 <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply">Reply</div>
13 </div>
14
15 <my-video-comment-add
16 *ngIf="isUserLoggedIn() && inReplyToCommentId === comment.id"
17 [user]="user"
18 [video]="video"
19 [parentComment]="comment"
20 [focusOnInit]="true"
21 (commentCreated)="onCommentReplyCreated($event)"
22 ></my-video-comment-add>
23
24 <div *ngIf="commentTree" class="children">
25 <div *ngFor="let commentChild of commentTree.children">
26 <my-video-comment
27 [comment]="commentChild.comment"
28 [video]="video"
29 [inReplyToCommentId]="inReplyToCommentId"
30 [commentTree]="commentChild"
31 (wantedToReply)="onWantedToReply($event)"
32 (resetReply)="onResetReply()"
33 ></my-video-comment>
34 </div>
35 </div>
36 </div>
37 </div>