adding basic helpers to guide users for comments/subscribe to accounts
authorRigel <sendmemail@rigelk.eu>
Mon, 7 May 2018 15:40:46 +0000 (17:40 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 11 May 2018 06:28:55 +0000 (08:28 +0200)
client/src/app/videos/+video-watch/comment/video-comments.component.html
client/src/app/videos/+video-watch/comment/video-comments.component.scss
client/src/app/videos/+video-watch/video-watch.component.html
client/src/app/videos/+video-watch/video-watch.component.scss

index 6f3e571602ed7d860b392ba2660511f304a5cf9d..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">
index 0b8aa1854f26fd0e823b6502034b1ac8dd2dc812..d5af929d785dbf3743b1faa3ba70bb6e05aa87e9 100644 (file)
   font-size: 13px;
 }
 
+.title-block .title-page {
+  margin-right: 0;
+}
+
+my-help {
+  display: inline-block;
+}
+
 @media screen and (max-width: 600px) {
   .view-replies {
     margin-left: 46px;
index 402a916476ac39863a69b678ca3cd721119e3c6c..990b9400d6e36731b1a88cad077adfecd52fc07c 100644 (file)
@@ -21,6 +21,7 @@
               {{ video.channel.displayName }}
             </a>
             <!-- Here will be the subscribe button -->
+            <my-help helpType="custom" customHtml="You can subscribe to this account 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 subscribe there. Subscription as a PeerTube user is being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/470'>#470</a>."></my-help>
           </div>
 
           <div class="video-info-by">
index 508c553a4cb53df705665c28fc40df416b6ac0b8..990f86cc56d407e4d3860a455f49ea2569711e5a 100644 (file)
             opacity: 0.8;
           }
         }
+
+        my-help {
+          display: inline-block;
+        }
       }
 
       .video-info-by a {