aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-04 09:39:19 +0200
committerChocobozzz <me@florianbigard.com>2018-04-04 09:39:19 +0200
commit317ebb939e78af5865f032d3b09289d23b82ce12 (patch)
tree000755190c55de4f28f1d61e3baaef5adee37371
parentd49b872a7a2e0d6ecb9c23a349ba2c6e578ea3eb (diff)
downloadPeerTube-317ebb939e78af5865f032d3b09289d23b82ce12.tar.gz
PeerTube-317ebb939e78af5865f032d3b09289d23b82ce12.tar.zst
PeerTube-317ebb939e78af5865f032d3b09289d23b82ce12.zip
Improve admin css help
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html21
1 files changed, 19 insertions, 2 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
index 4a5ffb37c..714a3af15 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
@@ -163,7 +163,7 @@
163 163
164 <div class="form-group"> 164 <div class="form-group">
165 <label for="customizationJavascript">JavaScript</label> 165 <label for="customizationJavascript">JavaScript</label>
166 <my-help helpType="custom" customHtml="Write directly JavaScript code.<br />Example: console.log('my instance is amazing');"></my-help> 166 <my-help helpType="custom" customHtml="Write directly JavaScript code.<br />Example: <pre>console.log('my instance is amazing');</pre>"></my-help>
167 <textarea 167 <textarea
168 id="customizationJavascript" formControlName="customizationJavascript" 168 id="customizationJavascript" formControlName="customizationJavascript"
169 [ngClass]="{ 'input-error': formErrors['customizationJavascript'] }" 169 [ngClass]="{ 'input-error': formErrors['customizationJavascript'] }"
@@ -175,7 +175,24 @@
175 175
176 <div class="form-group"> 176 <div class="form-group">
177 <label for="customizationCSS">CSS</label> 177 <label for="customizationCSS">CSS</label>
178 <my-help helpType="custom" customHtml="Write directly CSS code.<br />Example: body { background-color: red; }"></my-help> 178 <my-help
179 helpType="custom"
180 customHtml="
181 Write directly CSS code. Example:<br />
182 <pre>
183body {
184 background-color: red;
185}
186 </pre>
187
188 Prepend with <em>#custom-css</em> to override styles. Example:
189 <pre>
190#custom-css .logged-in-email {
191 color: red;
192}
193 </pre>
194 "
195 ></my-help>
179 <textarea 196 <textarea
180 id="customizationCSS" formControlName="customizationCSS" 197 id="customizationCSS" formControlName="customizationCSS"
181 [ngClass]="{ 'input-error': formErrors['customizationCSS'] }" 198 [ngClass]="{ 'input-error': formErrors['customizationCSS'] }"