]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add help to customizations configuration options
authorChocobozzz <me@florianbigard.com>
Tue, 27 Feb 2018 09:46:20 +0000 (10:46 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 27 Feb 2018 09:46:20 +0000 (10:46 +0100)
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html

index 4aef2ef6b958c6c626b21aa603fa356e8f577c83..18ba7ba060cba248f814ed2e2740c85a0723516e 100644 (file)
 
   <div class="form-group">
     <label for="customizationJavascript">JavaScript</label>
+    <my-help helpType="custom" customHtml="Write directly JavaScript code.<br />Example: console.log('my instance is amazing');"></my-help>
     <textarea
         id="customizationJavascript" formControlName="customizationJavascript"
         [ngClass]="{ 'input-error': formErrors['customizationJavascript'] }"
 
   <div class="form-group">
     <label for="customizationCSS">CSS</label>
+    <my-help helpType="custom" customHtml="Write directly CSS code.<br />Example: body { background-color: red; }"></my-help>
     <textarea
         id="customizationCSS" formControlName="customizationCSS"
         [ngClass]="{ 'input-error': formErrors['customizationCSS'] }"