ActivityPub-federated video streaming platform using P2P directly in your web browser
Move user registration info in features table
Chocobozzzc0e04e46417c
diff --git a/client/src/app/+about/about-instance/about-instance.component.html b/client/src/app/+about/about-instance/about-instance.component.htmlindex 8c700752e8..83376b6f67 100644--- a/client/src/app/+about/about-instance/about-instance.component.html+++ b/client/src/app/+about/about-instance/about-instance.component.html@@ -21,26 +21,6 @@<div [innerHTML]="termsHTML"></div></div>-- <div class="signup">- <div i18n class="section-title">Signup</div>-- <div *ngIf="isSignupAllowed">- <ng-container i18n>User registration is allowed and</ng-container>-- <ng-container i18n *ngIf="userVideoQuota !== -1">- this instance provides a baseline quota of {{ userVideoQuota | bytes: 0 }} space for the videos of its users.- </ng-container>-- <ng-container i18n *ngIf="userVideoQuota === -1">- this instance provides unlimited space for the videos of its users.- </ng-container>- </div>-- <div i18n *ngIf="isSignupAllowed === false">- User registration is currently not allowed.- </div>- </div></div><div class="col-md-12 col-xl-6">diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.tsindex ec572ff806..c9eab44ab6 100644--- a/client/src/app/+about/about-instance/about-instance.component.ts+++ b/client/src/app/+about/about-instance/about-instance.component.ts@@ -29,14 +29,6 @@ export class AboutInstanceComponent implements OnInit {return this.serverService.getConfig().instance.name}- get userVideoQuota () {- return this.serverService.getConfig().user.videoQuota- }-- get isSignupAllowed () {- return this.serverService.getConfig().signup.allowed- }-get isContactFormEnabled () {return this.serverService.getConfig().email.enabled && this.serverService.getConfig().contactForm.enabled}diff --git a/client/src/app/shared/instance/instance-features-table.component.html b/client/src/app/shared/instance/instance-features-table.component.htmlindex dc8db8cc1b..90046f4094 100644--- a/client/src/app/shared/instance/instance-features-table.component.html+++ b/client/src/app/shared/instance/instance-features-table.component.html@@ -1,6 +1,14 @@<div class="feature-table"><table class="table">+ <tr *ngFor="let feature of features">+ <td class="label">{{ feature.label }}</td>+ <td>+ <span *ngIf="feature.value === true" class="glyphicon glyphicon-ok"></span>+ <span *ngIf="feature.value === false" class="glyphicon glyphicon-remove"></span>+ </td>+ </tr>+<tr><td i18n class="label">Video quota</td>@@ -16,13 +24,5 @@</ng-container></td></tr>-- <tr *ngFor="let feature of features">- <td class="label">{{ feature.label }}</td>- <td>- <span *ngIf="feature.value === true" class="glyphicon glyphicon-ok"></span>- <span *ngIf="feature.value === false" class="glyphicon glyphicon-remove"></span>- </td>- </tr></table>-</div>\ No newline at end of file+</div>diff --git a/client/src/app/shared/instance/instance-features-table.component.ts b/client/src/app/shared/instance/instance-features-table.component.tsindex da8da07023..aaf0a69601 100644--- a/client/src/app/shared/instance/instance-features-table.component.ts+++ b/client/src/app/shared/instance/instance-features-table.component.ts@@ -37,6 +37,10 @@ export class InstanceFeaturesTableComponent implements OnInit {const config = this.serverService.getConfig()this.features = [+ {+ label: this.i18n('User registration allowed'),+ value: config.signup.allowed+ },{label: this.i18n('Transcode your videos in multiple resolutions'),value: config.transcoding.enabledResolutions.length !== 0@@ -50,7 +54,6 @@ export class InstanceFeaturesTableComponent implements OnInit {value: config.import.videos.torrent.enabled}]-}private getApproximateTime (seconds: number) {