diff options
author | Florian CUNY <poslovitch@bentobox.world> | 2020-11-30 15:05:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 15:05:57 +0100 |
commit | f45c7cc770963670b3f2f1ac11d3ee3afc84a7ec (patch) | |
tree | 3e58515c37c49f353d14dc52957339d81ee0bb2a /client/src/app/+admin | |
parent | 972de8f111fcacf523cf33062dd734e498df1081 (diff) | |
download | PeerTube-f45c7cc770963670b3f2f1ac11d3ee3afc84a7ec.tar.gz PeerTube-f45c7cc770963670b3f2f1ac11d3ee3afc84a7ec.tar.zst PeerTube-f45c7cc770963670b3f2f1ac11d3ee3afc84a7ec.zip |
Added Markdown formatting in all the fields of the "About" page (#3371)
* Added Markdown formatting in all the fields of the "About" page
Fixes https://github.com/Chocobozzz/PeerTube/issues/3368
* Fixed compilation error in AboutInstanceComponent
Moved creationReason, maintenanceLifetime and businessModel into the html dict
* Removed textareaHeight for all md textareas in EditCustomConfig HTML
* Fixed failing bundlewatch
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html | 30 |
1 files changed, 15 insertions, 15 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 0927523f1..70533475a 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 | |||
@@ -162,11 +162,11 @@ | |||
162 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | 162 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> |
163 | 163 | ||
164 | <div class="form-group"> | 164 | <div class="form-group"> |
165 | <label i18n for="instanceAdministrator">Who is behind the instance?</label> | 165 | <label i18n for="instanceAdministrator">Who is behind the instance?</label><my-help helpType="markdownText"></my-help> |
166 | <div i18n class="label-small-info">A single person? A non-profit? A company?</div> | 166 | <div i18n class="label-small-info">A single person? A non-profit? A company?</div> |
167 | 167 | ||
168 | <my-markdown-textarea | 168 | <my-markdown-textarea |
169 | name="instanceAdministrator" formControlName="administrator" textareaMaxWidth="500px" textareaHeight="75px" | 169 | name="instanceAdministrator" formControlName="administrator" textareaMaxWidth="500px" |
170 | [classes]="{ 'input-error': formErrors['instance.administrator'] }" | 170 | [classes]="{ 'input-error': formErrors['instance.administrator'] }" |
171 | ></my-markdown-textarea> | 171 | ></my-markdown-textarea> |
172 | 172 | ||
@@ -174,35 +174,35 @@ | |||
174 | </div> | 174 | </div> |
175 | 175 | ||
176 | <div class="form-group"> | 176 | <div class="form-group"> |
177 | <label i18n for="instanceCreationReason">Why did you create this instance?</label> | 177 | <label i18n for="instanceCreationReason">Why did you create this instance?</label><my-help helpType="markdownText"></my-help> |
178 | <div i18n class="label-small-info">To share your personal videos? To open registrations and allow people to upload what they want?</div> | 178 | <div i18n class="label-small-info">To share your personal videos? To open registrations and allow people to upload what they want?</div> |
179 | 179 | ||
180 | <textarea | 180 | <my-markdown-textarea |
181 | id="instanceCreationReason" formControlName="creationReason" class="small" class="form-control" | 181 | id="instanceCreationReason" formControlName="creationReason" textareaMaxWidth="500px" |
182 | [ngClass]="{ 'input-error': formErrors['instance.creationReason'] }" | 182 | [ngClass]="{ 'input-error': formErrors['instance.creationReason'] }" |
183 | ></textarea> | 183 | ></my-markdown-textarea> |
184 | <div *ngIf="formErrors.instance.creationReason" class="form-error">{{ formErrors.instance.creationReason }}</div> | 184 | <div *ngIf="formErrors.instance.creationReason" class="form-error">{{ formErrors.instance.creationReason }}</div> |
185 | </div> | 185 | </div> |
186 | 186 | ||
187 | <div class="form-group"> | 187 | <div class="form-group"> |
188 | <label i18n for="instanceMaintenanceLifetime">How long do you plan to maintain this instance?</label> | 188 | <label i18n for="instanceMaintenanceLifetime">How long do you plan to maintain this instance?</label><my-help helpType="markdownText"></my-help> |
189 | <div i18n class="label-small-info">It's important to know for users who want to register on your instance</div> | 189 | <div i18n class="label-small-info">It's important to know for users who want to register on your instance</div> |
190 | 190 | ||
191 | <textarea | 191 | <my-markdown-textarea |
192 | id="instanceMaintenanceLifetime" formControlName="maintenanceLifetime" class="form-control small" | 192 | id="instanceMaintenanceLifetime" formControlName="maintenanceLifetime" textareaMaxWidth="500px" |
193 | [ngClass]="{ 'input-error': formErrors['instance.maintenanceLifetime'] }" | 193 | [ngClass]="{ 'input-error': formErrors['instance.maintenanceLifetime'] }" |
194 | ></textarea> | 194 | ></my-markdown-textarea> |
195 | <div *ngIf="formErrors.instance.maintenanceLifetime" class="form-error">{{ formErrors.instance.maintenanceLifetime }}</div> | 195 | <div *ngIf="formErrors.instance.maintenanceLifetime" class="form-error">{{ formErrors.instance.maintenanceLifetime }}</div> |
196 | </div> | 196 | </div> |
197 | 197 | ||
198 | <div class="form-group"> | 198 | <div class="form-group"> |
199 | <label i18n for="instanceBusinessModel">How will you finance the PeerTube server?</label> | 199 | <label i18n for="instanceBusinessModel">How will you finance the PeerTube server?</label><my-help helpType="markdownText"></my-help> |
200 | <div i18n class="label-small-info">With your own funds? With user donations? Advertising?</div> | 200 | <div i18n class="label-small-info">With your own funds? With user donations? Advertising?</div> |
201 | 201 | ||
202 | <textarea | 202 | <my-markdown-textarea |
203 | id="instanceBusinessModel" formControlName="businessModel" class="form-control small" | 203 | id="instanceBusinessModel" formControlName="businessModel" textareaMaxWidth="500px" |
204 | [ngClass]="{ 'input-error': formErrors['instance.businessModel'] }" | 204 | [ngClass]="{ 'input-error': formErrors['instance.businessModel'] }" |
205 | ></textarea> | 205 | ></my-markdown-textarea> |
206 | <div *ngIf="formErrors.instance.businessModel" class="form-error">{{ formErrors.instance.businessModel }}</div> | 206 | <div *ngIf="formErrors.instance.businessModel" class="form-error">{{ formErrors.instance.businessModel }}</div> |
207 | </div> | 207 | </div> |
208 | 208 | ||
@@ -221,7 +221,7 @@ | |||
221 | <div i18n class="label-small-info">i.e. 2vCore 2GB RAM, a direct the link to the server you rent, etc.</div> | 221 | <div i18n class="label-small-info">i.e. 2vCore 2GB RAM, a direct the link to the server you rent, etc.</div> |
222 | 222 | ||
223 | <my-markdown-textarea | 223 | <my-markdown-textarea |
224 | name="instanceHardwareInformation" formControlName="hardwareInformation" textareaMaxWidth="500px" textareaHeight="75px" | 224 | name="instanceHardwareInformation" formControlName="hardwareInformation" textareaMaxWidth="500px" |
225 | [classes]="{ 'input-error': formErrors['instance.hardwareInformation'] }" | 225 | [classes]="{ 'input-error': formErrors['instance.hardwareInformation'] }" |
226 | ></my-markdown-textarea> | 226 | ></my-markdown-textarea> |
227 | 227 | ||