<div class="section-title">Terms</div>
<div [innerHTML]="termsHTML"></div>
+
+ <div *ngIf="userVideoQuota !== -1;else noQuota">
+ This instance provides a baseline quota of {{ userVideoQuota | bytes: 0 }} space for the videos of its users.
+ </div>
+
+ <ng-template #noQuota>
+ This instance provides unlimited space for the videos of its users.
+ </ng-template>
</div>
<div id="p2p-privacy">
return this.serverService.getConfig().instance.name
}
+ get userVideoQuota () {
+ return this.serverService.getConfig().user.videoQuota
+ }
+
ngOnInit () {
this.serverService.getAbout()
.subscribe(
this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
},
- err => this.notificationsService.error('Error', err)
+ err => this.notificationsService.error('Error getting about from server', err)
)
}
import { ReplaySubject } from 'rxjs/ReplaySubject'
import { ServerConfig } from '../../../../../shared'
import { About } from '../../../../../shared/models/server/about.model'
+import { ServerStats } from '../../../../../shared/models/server/server-stats.model'
import { environment } from '../../../environments/environment'
@Injectable()
file: {
extensions: []
}
+ },
+ user: {
+ videoQuota: -1
}
}
private videoCategories: Array<{ id: number, label: string }> = []
file: {
extensions: CONSTRAINTS_FIELDS.VIDEOS.EXTNAME
}
+ },
+ user: {
+ videoQuota: CONFIG.USER.VIDEO_QUOTA
}
}
extensions: string[]
}
}
+
+ user: {
+ videoQuota: number
+ }
}