diff options
Diffstat (limited to 'client/src/app/+about')
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.html | 14 | ||||
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.ts | 11 |
2 files changed, 10 insertions, 15 deletions
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 @@ | |||
21 | 21 | ||
22 | <div class="anchor" id="administrators-and-sustainability"></div> | 22 | <div class="anchor" id="administrators-and-sustainability"></div> |
23 | <a | 23 | <a |
24 | *ngIf="html.administrator || maintenanceLifetime || businessModel" | 24 | *ngIf="html.administrator || html.maintenanceLifetime || html.businessModel" |
25 | class="anchor-link" | 25 | class="anchor-link" |
26 | routerLink="/about/instance" | 26 | routerLink="/about/instance" |
27 | fragment="administrators-and-sustainability" | 27 | fragment="administrators-and-sustainability" |
@@ -47,7 +47,7 @@ | |||
47 | <div [innerHTML]="html.administrator"></div> | 47 | <div [innerHTML]="html.administrator"></div> |
48 | </div> | 48 | </div> |
49 | 49 | ||
50 | <div class="block creation-reason" *ngIf="creationReason"> | 50 | <div class="block creation-reason" *ngIf="html.creationReason"> |
51 | <div class="anchor" id="creation-reason"></div> | 51 | <div class="anchor" id="creation-reason"></div> |
52 | <a | 52 | <a |
53 | class="anchor-link" | 53 | class="anchor-link" |
@@ -58,10 +58,10 @@ | |||
58 | <h3 i18n class="section-title">Why we created this instance</h3> | 58 | <h3 i18n class="section-title">Why we created this instance</h3> |
59 | </a> | 59 | </a> |
60 | 60 | ||
61 | <p>{{ creationReason }}</p> | 61 | <div [innerHTML]="html.creationReason"></div> |
62 | </div> | 62 | </div> |
63 | 63 | ||
64 | <div class="block maintenance-lifetime" *ngIf="maintenanceLifetime"> | 64 | <div class="block maintenance-lifetime" *ngIf="html.maintenanceLifetime"> |
65 | <div class="anchor" id="maintenance-lifetime"></div> | 65 | <div class="anchor" id="maintenance-lifetime"></div> |
66 | <a | 66 | <a |
67 | class="anchor-link" | 67 | class="anchor-link" |
@@ -72,10 +72,10 @@ | |||
72 | <h3 i18n class="section-title">How long we plan to maintain this instance</h3> | 72 | <h3 i18n class="section-title">How long we plan to maintain this instance</h3> |
73 | </a> | 73 | </a> |
74 | 74 | ||
75 | <p>{{ maintenanceLifetime }}</p> | 75 | <div [innerHTML]="html.maintenanceLifetime"></div> |
76 | </div> | 76 | </div> |
77 | 77 | ||
78 | <div class="block business-model" *ngIf="businessModel"> | 78 | <div class="block business-model" *ngIf="html.businessModel"> |
79 | <div class="anchor" id="business-model"></div> | 79 | <div class="anchor" id="business-model"></div> |
80 | <a | 80 | <a |
81 | class="anchor-link" | 81 | class="anchor-link" |
@@ -86,7 +86,7 @@ | |||
86 | <h3 i18n class="section-title">How we will pay for this instance</h3> | 86 | <h3 i18n class="section-title">How we will pay for this instance</h3> |
87 | </a> | 87 | </a> |
88 | 88 | ||
89 | <p>{{ businessModel }}</p> | 89 | <div [innerHTML]="html.businessModel"></div> |
90 | </div> | 90 | </div> |
91 | 91 | ||
92 | <div class="anchor" id="information"></div> | 92 | <div class="anchor" id="information"></div> |
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 { | |||
24 | codeOfConduct: '', | 24 | codeOfConduct: '', |
25 | moderationInformation: '', | 25 | moderationInformation: '', |
26 | administrator: '', | 26 | administrator: '', |
27 | creationReason: '', | ||
28 | maintenanceLifetime: '', | ||
29 | businessModel: '', | ||
27 | hardwareInformation: '' | 30 | hardwareInformation: '' |
28 | } | 31 | } |
29 | 32 | ||
30 | creationReason = '' | ||
31 | maintenanceLifetime = '' | ||
32 | businessModel = '' | ||
33 | |||
34 | languages: string[] = [] | 33 | languages: string[] = [] |
35 | categories: string[] = [] | 34 | categories: string[] = [] |
36 | 35 | ||
@@ -69,10 +68,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { | |||
69 | 68 | ||
70 | this.shortDescription = about.instance.shortDescription | 69 | this.shortDescription = about.instance.shortDescription |
71 | 70 | ||
72 | this.creationReason = about.instance.creationReason | ||
73 | this.maintenanceLifetime = about.instance.maintenanceLifetime | ||
74 | this.businessModel = about.instance.businessModel | ||
75 | |||
76 | this.html = await this.instanceService.buildHtml(about) | 71 | this.html = await this.instanceService.buildHtml(about) |
77 | 72 | ||
78 | this.initialized = true | 73 | this.initialized = true |