]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comments.component.html
fix comment and top-menu placement regressions
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comments.component.html
CommitLineData
4635f59d 1<div>
169310b2 2 <div class="title-block">
8c40b7dc 3 <div i18n class="title-page title-page-single">
169310b2
R
4 Comments
5 </div>
bf079b7b 6 <my-help
b1d40cff 7 *ngIf="video.commentsEnabled === true" helpType="custom" i18n-customHtml
9e32b99c 8 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.name}}@{{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
9 </div>
10
47564bbe
C
11 <ng-template [ngIf]="video.commentsEnabled === true">
12 <my-video-comment-add
13 *ngIf="isUserLoggedIn()"
14 [video]="video"
cf117aaa 15 [user]="user"
47564bbe
C
16 (commentCreated)="onCommentThreadCreated($event)"
17 ></my-video-comment-add>
4635f59d 18
b1d40cff 19 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0" i18n>No comments.</div>
4635f59d 20
47564bbe
C
21 <div
22 class="comment-threads"
0cd4344f 23 myInfiniteScroller
aa55a4da 24 [autoInit]="true"
0cd4344f 25 (nearOfBottom)="onNearOfBottom()"
47564bbe 26 >
bf079b7b 27 <div #commentHighlightBlock id="highlighted-comment">
1263fc4e 28 <my-video-comment
bf079b7b 29 *ngIf="highlightedThread"
b1d40cff
C
30 [comment]="highlightedThread"
31 [video]="video"
32 [inReplyToCommentId]="inReplyToCommentId"
33 [commentTree]="threadComments[highlightedThread.id]"
34 [highlightedComment]="true"
35 (wantedToReply)="onWantedToReply($event)"
36 (wantedToDelete)="onWantedToDelete($event)"
37 (threadCreated)="onThreadCreated($event)"
38 (resetReply)="onResetReply()"
1263fc4e
C
39 ></my-video-comment>
40 </div>
41
47564bbe
C
42 <div *ngFor="let comment of comments">
43 <my-video-comment
5b8072ee 44 *ngIf="!highlightedThread || comment.id !== highlightedThread.id"
47564bbe
C
45 [comment]="comment"
46 [video]="video"
47 [inReplyToCommentId]="inReplyToCommentId"
48 [commentTree]="threadComments[comment.id]"
49 (wantedToReply)="onWantedToReply($event)"
4cb6d457
C
50 (wantedToDelete)="onWantedToDelete($event)"
51 (threadCreated)="onThreadCreated($event)"
47564bbe
C
52 (resetReply)="onResetReply()"
53 ></my-video-comment>
4635f59d 54
1263fc4e 55 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies">
b1d40cff 56 <ng-container i18n>View all {{ comment.totalReplies }} replies</ng-container>
47564bbe
C
57
58 <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span>
59 <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader>
60 </div>
4635f59d
C
61 </div>
62 </div>
47564bbe
C
63 </ng-template>
64
b1d40cff 65 <div *ngIf="video.commentsEnabled === false" i18n>
47564bbe 66 Comments are disabled.
4635f59d
C
67 </div>
68</div>