]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comments.component.html
Prepare i18n files
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comments.component.html
CommitLineData
4635f59d 1<div>
169310b2
R
2 <div class="title-block">
3 <div class="title-page title-page-single">
4 Comments
5 </div>
6 <my-help *ngIf="video.commentsEnabled === true" helpType="custom" customHtml="You can either comment on the page of your instance where this video is federated with your PeerTube account, or via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box <strong>@{{video.account.displayName}}@{{video.account.host}}</strong> and find back the video. Direct commenting capabilities are being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/224'>#224</a>."></my-help>
4635f59d
C
7 </div>
8
47564bbe
C
9 <ng-template [ngIf]="video.commentsEnabled === true">
10 <my-video-comment-add
11 *ngIf="isUserLoggedIn()"
12 [video]="video"
cf117aaa 13 [user]="user"
47564bbe
C
14 (commentCreated)="onCommentThreadCreated($event)"
15 ></my-video-comment-add>
4635f59d 16
47564bbe 17 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0">No comments.</div>
4635f59d 18
47564bbe
C
19 <div
20 class="comment-threads"
0cd4344f
C
21 myInfiniteScroller
22 [autoLoading]="true"
23 (nearOfBottom)="onNearOfBottom()"
47564bbe 24 >
5b8072ee 25 <div *ngIf="highlightedThread" id="highlighted-comment">
1263fc4e 26 <my-video-comment
5b8072ee 27 [comment]="highlightedThread"
1263fc4e
C
28 [video]="video"
29 [inReplyToCommentId]="inReplyToCommentId"
5b8072ee 30 [commentTree]="threadComments[highlightedThread.id]"
1263fc4e
C
31 [highlightedComment]="true"
32 (wantedToReply)="onWantedToReply($event)"
33 (wantedToDelete)="onWantedToDelete($event)"
34 (threadCreated)="onThreadCreated($event)"
35 (resetReply)="onResetReply()"
36 ></my-video-comment>
37 </div>
38
47564bbe
C
39 <div *ngFor="let comment of comments">
40 <my-video-comment
5b8072ee 41 *ngIf="!highlightedThread || comment.id !== highlightedThread.id"
47564bbe
C
42 [comment]="comment"
43 [video]="video"
44 [inReplyToCommentId]="inReplyToCommentId"
45 [commentTree]="threadComments[comment.id]"
46 (wantedToReply)="onWantedToReply($event)"
4cb6d457
C
47 (wantedToDelete)="onWantedToDelete($event)"
48 (threadCreated)="onThreadCreated($event)"
47564bbe
C
49 (resetReply)="onResetReply()"
50 ></my-video-comment>
4635f59d 51
1263fc4e 52 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies">
47564bbe
C
53 View all {{ comment.totalReplies }} replies
54
55 <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span>
56 <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader>
57 </div>
4635f59d
C
58 </div>
59 </div>
47564bbe
C
60 </ng-template>
61
62 <div *ngIf="video.commentsEnabled === false">
63 Comments are disabled.
4635f59d
C
64 </div>
65</div>