diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comments.component.html')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comments.component.html | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.html b/client/src/app/videos/+video-watch/comment/video-comments.component.html index 114a56dc7..ac7c03648 100644 --- a/client/src/app/videos/+video-watch/comment/video-comments.component.html +++ b/client/src/app/videos/+video-watch/comment/video-comments.component.html | |||
@@ -3,7 +3,10 @@ | |||
3 | <div class="title-page title-page-single"> | 3 | <div class="title-page title-page-single"> |
4 | Comments | 4 | Comments |
5 | </div> | 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> | 6 | <my-help |
7 | *ngIf="video.commentsEnabled === true" helpType="custom" i18n-customHtml | ||
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.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>." | ||
9 | ></my-help> | ||
7 | </div> | 10 | </div> |
8 | 11 | ||
9 | <ng-template [ngIf]="video.commentsEnabled === true"> | 12 | <ng-template [ngIf]="video.commentsEnabled === true"> |
@@ -14,7 +17,7 @@ | |||
14 | (commentCreated)="onCommentThreadCreated($event)" | 17 | (commentCreated)="onCommentThreadCreated($event)" |
15 | ></my-video-comment-add> | 18 | ></my-video-comment-add> |
16 | 19 | ||
17 | <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0">No comments.</div> | 20 | <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0" i18n>No comments.</div> |
18 | 21 | ||
19 | <div | 22 | <div |
20 | class="comment-threads" | 23 | class="comment-threads" |
@@ -24,15 +27,15 @@ | |||
24 | > | 27 | > |
25 | <div *ngIf="highlightedThread" id="highlighted-comment"> | 28 | <div *ngIf="highlightedThread" id="highlighted-comment"> |
26 | <my-video-comment | 29 | <my-video-comment |
27 | [comment]="highlightedThread" | 30 | [comment]="highlightedThread" |
28 | [video]="video" | 31 | [video]="video" |
29 | [inReplyToCommentId]="inReplyToCommentId" | 32 | [inReplyToCommentId]="inReplyToCommentId" |
30 | [commentTree]="threadComments[highlightedThread.id]" | 33 | [commentTree]="threadComments[highlightedThread.id]" |
31 | [highlightedComment]="true" | 34 | [highlightedComment]="true" |
32 | (wantedToReply)="onWantedToReply($event)" | 35 | (wantedToReply)="onWantedToReply($event)" |
33 | (wantedToDelete)="onWantedToDelete($event)" | 36 | (wantedToDelete)="onWantedToDelete($event)" |
34 | (threadCreated)="onThreadCreated($event)" | 37 | (threadCreated)="onThreadCreated($event)" |
35 | (resetReply)="onResetReply()" | 38 | (resetReply)="onResetReply()" |
36 | ></my-video-comment> | 39 | ></my-video-comment> |
37 | </div> | 40 | </div> |
38 | 41 | ||
@@ -50,7 +53,7 @@ | |||
50 | ></my-video-comment> | 53 | ></my-video-comment> |
51 | 54 | ||
52 | <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies"> | 55 | <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies"> |
53 | View all {{ comment.totalReplies }} replies | 56 | <ng-container i18n>View all {{ comment.totalReplies }} replies</ng-container> |
54 | 57 | ||
55 | <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span> | 58 | <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span> |
56 | <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader> | 59 | <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader> |
@@ -59,7 +62,7 @@ | |||
59 | </div> | 62 | </div> |
60 | </ng-template> | 63 | </ng-template> |
61 | 64 | ||
62 | <div *ngIf="video.commentsEnabled === false"> | 65 | <div *ngIf="video.commentsEnabled === false" i18n> |
63 | Comments are disabled. | 66 | Comments are disabled. |
64 | </div> | 67 | </div> |
65 | </div> | 68 | </div> |