diff options
author | Chocobozzz <me@florianbigard.com> | 2019-09-03 09:49:04 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-09-05 10:17:02 +0200 |
commit | 8ae03c37181822617418d1fc372982b245ac0a9a (patch) | |
tree | e98e4a57ca85f2fd982aa8054476c9983cbb2398 /client/src/app/+about | |
parent | 589d9f55f6f3f0d069d4bbb207d3d20769cc4ded (diff) | |
download | PeerTube-8ae03c37181822617418d1fc372982b245ac0a9a.tar.gz PeerTube-8ae03c37181822617418d1fc372982b245ac0a9a.tar.zst PeerTube-8ae03c37181822617418d1fc372982b245ac0a9a.zip |
Add creation reason
Diffstat (limited to 'client/src/app/+about')
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.html | 12 | ||||
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.ts | 2 |
2 files changed, 11 insertions, 3 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 80acfcce0..8b21137af 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html | |||
@@ -24,19 +24,25 @@ | |||
24 | </div> | 24 | </div> |
25 | 25 | ||
26 | <div class="block administrator" *ngIf="html.administrator"> | 26 | <div class="block administrator" *ngIf="html.administrator"> |
27 | <div i18n class="section-title">Who are we?</div> | 27 | <div i18n class="section-title">Who we are</div> |
28 | 28 | ||
29 | <div [innerHTML]="html.administrator"></div> | 29 | <div [innerHTML]="html.administrator"></div> |
30 | </div> | 30 | </div> |
31 | 31 | ||
32 | <div class="block creation-reason" *ngIf="creationReason"> | ||
33 | <div i18n class="section-title">Why we created this instance</div> | ||
34 | |||
35 | <p>{{ creationReason }}</p> | ||
36 | </div> | ||
37 | |||
32 | <div class="block maintenance-lifetime" *ngIf="maintenanceLifetime"> | 38 | <div class="block maintenance-lifetime" *ngIf="maintenanceLifetime"> |
33 | <div i18n class="section-title">How long do we plan to maintain this instance?</div> | 39 | <div i18n class="section-title">How long we plan to maintain this instance</div> |
34 | 40 | ||
35 | <p>{{ maintenanceLifetime }}</p> | 41 | <p>{{ maintenanceLifetime }}</p> |
36 | </div> | 42 | </div> |
37 | 43 | ||
38 | <div class="block business-model" *ngIf="businessModel"> | 44 | <div class="block business-model" *ngIf="businessModel"> |
39 | <div i18n class="section-title">How will we pay this instance?</div> | 45 | <div i18n class="section-title">How we will pay this instance</div> |
40 | 46 | ||
41 | <p>{{ businessModel }}</p> | 47 | <p>{{ businessModel }}</p> |
42 | </div> | 48 | </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 e2c448501..b6cade4fe 100644 --- a/client/src/app/+about/about-instance/about-instance.component.ts +++ b/client/src/app/+about/about-instance/about-instance.component.ts | |||
@@ -25,6 +25,7 @@ export class AboutInstanceComponent implements OnInit { | |||
25 | administrator: '' | 25 | administrator: '' |
26 | } | 26 | } |
27 | 27 | ||
28 | creationReason = '' | ||
28 | maintenanceLifetime = '' | 29 | maintenanceLifetime = '' |
29 | businessModel = '' | 30 | businessModel = '' |
30 | 31 | ||
@@ -61,6 +62,7 @@ export class AboutInstanceComponent implements OnInit { | |||
61 | async ([ about, translations ]) => { | 62 | async ([ about, translations ]) => { |
62 | this.shortDescription = about.instance.shortDescription | 63 | this.shortDescription = about.instance.shortDescription |
63 | 64 | ||
65 | this.creationReason = about.instance.creationReason | ||
64 | this.maintenanceLifetime = about.instance.maintenanceLifetime | 66 | this.maintenanceLifetime = about.instance.maintenanceLifetime |
65 | this.businessModel = about.instance.businessModel | 67 | this.businessModel = about.instance.businessModel |
66 | 68 | ||