diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-28 15:46:56 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-09-05 10:17:02 +0200 |
commit | 589d9f55f6f3f0d069d4bbb207d3d20769cc4ded (patch) | |
tree | 0826bda439beb523e458513672a3d06c924e1760 /client/src/app/modal/instance-config-warning-modal.component.html | |
parent | 43d0ea7f4b88d52097172cc0c1831edd7e492503 (diff) | |
download | PeerTube-589d9f55f6f3f0d069d4bbb207d3d20769cc4ded.tar.gz PeerTube-589d9f55f6f3f0d069d4bbb207d3d20769cc4ded.tar.zst PeerTube-589d9f55f6f3f0d069d4bbb207d3d20769cc4ded.zip |
Add config instance warning modal
Diffstat (limited to 'client/src/app/modal/instance-config-warning-modal.component.html')
-rw-r--r-- | client/src/app/modal/instance-config-warning-modal.component.html | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/client/src/app/modal/instance-config-warning-modal.component.html b/client/src/app/modal/instance-config-warning-modal.component.html index 595afb103..f9e07333a 100644 --- a/client/src/app/modal/instance-config-warning-modal.component.html +++ b/client/src/app/modal/instance-config-warning-modal.component.html | |||
@@ -1,14 +1,41 @@ | |||
1 | <ng-template #modal let-hide="close"> | 1 | <ng-template #modal let-hide="close"> |
2 | <div class="modal-header"> | 2 | <div class="modal-header"> |
3 | <h4 i18n class="modal-title">Warning!</h4> | 3 | <h4 i18n class="modal-title">Configuration warning!</h4> |
4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> | 4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> |
5 | </div> | 5 | </div> |
6 | 6 | ||
7 | <div class="modal-body"> | 7 | <div class="modal-body"> |
8 | 8 | ||
9 | <p i18n>Hello dear administrator. You enabled user registration on your instance but you did not configure the following fields:</p> | ||
10 | |||
11 | <ul> | ||
12 | <li i18n *ngIf="about.instance.name.toLowerCase() === 'peertube'">Instance name</li> | ||
13 | <li i18n *ngIf="about.instance.shortDescription">Instance short description</li> | ||
14 | |||
15 | <li i18n *ngIf="!about.instance.administrator">Who you are</li> | ||
16 | <li i18n *ngIf="!about.instance.maintenanceLifetime">How long you plan to maintain your instance</li> | ||
17 | <li i18n *ngIf="!about.instance.businessModel">How you plan to pay your instance</li> | ||
18 | |||
19 | <li i18n *ngIf="!about.instance.moderationInformation">How you will moderate your instance</li> | ||
20 | <li i18n *ngIf="!about.instance.terms">Instance terms</li> | ||
21 | </ul> | ||
22 | |||
23 | <p>Please consider to configure these fields to help people to choose <strong>the appropriate instance</strong>.</p> | ||
24 | |||
25 | <div class="configure-instance"> | ||
26 | <a i18n href="/admin/config/edit-custom" target="_blank" rel="noopener noreferrer">Configure these fields</a> | ||
27 | </div> | ||
28 | |||
9 | </div> | 29 | </div> |
10 | 30 | ||
11 | <div class="modal-footer inputs"> | 31 | <div class="modal-footer inputs"> |
32 | <my-peertube-checkbox | ||
33 | inputName="stopDisplayModal" [(ngModel)]="stopDisplayModal" | ||
34 | i18n-labelText labelText="Don't show me this warning anymore" | ||
35 | > | ||
36 | |||
37 | </my-peertube-checkbox> | ||
38 | |||
12 | <span i18n class="action-button action-button-cancel" (click)="hide()">Close</span> | 39 | <span i18n class="action-button action-button-cancel" (click)="hide()">Close</span> |
13 | </div> | 40 | </div> |
14 | 41 | ||