From f45c7cc770963670b3f2f1ac11d3ee3afc84a7ec Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Mon, 30 Nov 2020 15:05:57 +0100 Subject: 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 --- .../+about/about-instance/about-instance.component.html | 14 +++++++------- .../app/+about/about-instance/about-instance.component.ts | 11 +++-------- 2 files changed, 10 insertions(+), 15 deletions(-) (limited to 'client/src/app/+about') diff --git a/client/src/app/+about/about-instance/about-instance.component.html b/client/src/app/+about/about-instance/about-instance.component.html index 045bb3fbc..bb337fdf3 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html @@ -21,7 +21,7 @@
-
+
Why we created this instance -

{{ creationReason }}

+
-
+
How long we plan to maintain this instance -

{{ maintenanceLifetime }}

+
-
+
How we will pay for this instance -

{{ businessModel }}

+
diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.ts index 92ecd5263..7eb382a46 100644 --- a/client/src/app/+about/about-instance/about-instance.component.ts +++ b/client/src/app/+about/about-instance/about-instance.component.ts @@ -24,13 +24,12 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { codeOfConduct: '', moderationInformation: '', administrator: '', + creationReason: '', + maintenanceLifetime: '', + businessModel: '', hardwareInformation: '' } - creationReason = '' - maintenanceLifetime = '' - businessModel = '' - languages: string[] = [] categories: string[] = [] @@ -69,10 +68,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { this.shortDescription = about.instance.shortDescription - this.creationReason = about.instance.creationReason - this.maintenanceLifetime = about.instance.maintenanceLifetime - this.businessModel = about.instance.businessModel - this.html = await this.instanceService.buildHtml(about) this.initialized = true -- cgit v1.2.3