aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-27 15:46:36 +0200
committerChocobozzz <me@florianbigard.com>2018-03-27 15:46:36 +0200
commitbe1fc4bc50811df522cbfef299da6a7540589f65 (patch)
tree3e49a94b641e623bd23e71e8621c9c949bec2eca /client
parentfc62e39c0b5d20b19916b2880a0f9a110fcc02e5 (diff)
downloadPeerTube-be1fc4bc50811df522cbfef299da6a7540589f65.tar.gz
PeerTube-be1fc4bc50811df522cbfef299da6a7540589f65.tar.zst
PeerTube-be1fc4bc50811df522cbfef299da6a7540589f65.zip
Fix custom server configuration numbers
Diffstat (limited to 'client')
-rw-r--r--client/src/app/about/about.component.html24
-rw-r--r--client/src/app/about/about.component.scss2
-rw-r--r--client/src/app/about/about.component.ts4
3 files changed, 23 insertions, 7 deletions
diff --git a/client/src/app/about/about.component.html b/client/src/app/about/about.component.html
index bcb4ed2be..bad90d161 100644
--- a/client/src/app/about/about.component.html
+++ b/client/src/app/about/about.component.html
@@ -13,14 +13,26 @@
13 <div class="section-title">Terms</div> 13 <div class="section-title">Terms</div>
14 14
15 <div [innerHTML]="termsHTML"></div> 15 <div [innerHTML]="termsHTML"></div>
16 </div>
17
18 <div class="signup">
19 <div class="section-title">Signup</div>
20
21 <div *ngIf="isSignupAllowed">
22 User registration is allowed and
23
24 <ng-template [ngIf]="userVideoQuota !== -1">
25 this instance provides a baseline quota of {{ userVideoQuota | bytes }} space for the videos of its users.
26 </ng-template>
27
28 <ng-template [ngIf]="userVideoQuota === -1">
29 this instance provides unlimited space for the videos of its users.
30 </ng-template>
31 </div>
16 32
17 <div *ngIf="userVideoQuota !== -1;else noQuota"> 33 <div *ngIf="isSignupAllowed === false">
18 This instance provides a baseline quota of {{ userVideoQuota | bytes: 0 }} space for the videos of its users. 34 User registration is currently not allowed.
19 </div> 35 </div>
20
21 <ng-template #noQuota>
22 This instance provides unlimited space for the videos of its users.
23 </ng-template>
24 </div> 36 </div>
25 37
26 <div id="p2p-privacy"> 38 <div id="p2p-privacy">
diff --git a/client/src/app/about/about.component.scss b/client/src/app/about/about.component.scss
index 09e9c68cb..2a22b9528 100644
--- a/client/src/app/about/about.component.scss
+++ b/client/src/app/about/about.component.scss
@@ -7,6 +7,6 @@
7 margin-bottom: 5px; 7 margin-bottom: 5px;
8} 8}
9 9
10.description, .terms { 10.description, .terms, .signup {
11 margin-bottom: 30px; 11 margin-bottom: 30px;
12} 12}
diff --git a/client/src/app/about/about.component.ts b/client/src/app/about/about.component.ts
index 7edc013e1..2fd48f0d3 100644
--- a/client/src/app/about/about.component.ts
+++ b/client/src/app/about/about.component.ts
@@ -27,6 +27,10 @@ export class AboutComponent implements OnInit {
27 return this.serverService.getConfig().user.videoQuota 27 return this.serverService.getConfig().user.videoQuota
28 } 28 }
29 29
30 get isSignupAllowed () {
31 return this.serverService.getConfig().signup.allowed
32 }
33
30 ngOnInit () { 34 ngOnInit () {
31 this.serverService.getAbout() 35 this.serverService.getAbout()
32 .subscribe( 36 .subscribe(