]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-watch/comment/video-comments.component.html
adding basic helpers to guide users for comments/subscribe to accounts
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comments.component.html
index f95e2cbba7dc29e6ebabb6ab4b08527292c73028..114a56dc77030357ef283a8d73feaa342250a6f1 100644 (file)
@@ -1,6 +1,9 @@
 <div>
-  <div class="title-page title-page-single">
-    Comments
+  <div class="title-block">
+    <div class="title-page title-page-single">
+      Comments
+    </div>
+    <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>
   </div>
 
   <ng-template [ngIf]="video.commentsEnabled === true">
       [autoLoading]="true"
       (nearOfBottom)="onNearOfBottom()"
     >
-      <div *ngIf="highlightedComment" id="highlighted-comment">
+      <div *ngIf="highlightedThread" id="highlighted-comment">
         <my-video-comment
-            [comment]="highlightedComment"
+            [comment]="highlightedThread"
             [video]="video"
             [inReplyToCommentId]="inReplyToCommentId"
-            [commentTree]="threadComments[highlightedComment.id]"
+            [commentTree]="threadComments[highlightedThread.id]"
             [highlightedComment]="true"
             (wantedToReply)="onWantedToReply($event)"
             (wantedToDelete)="onWantedToDelete($event)"
@@ -35,7 +38,7 @@
 
       <div *ngFor="let comment of comments">
         <my-video-comment
-          *ngIf="!highlightedComment || comment.id !== highlightedComment.id"
+          *ngIf="!highlightedThread || comment.id !== highlightedThread.id"
           [comment]="comment"
           [video]="video"
           [inReplyToCommentId]="inReplyToCommentId"