]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
add daily quota to the features table information
authorRigel Kent <sendmemail@rigelk.eu>
Sun, 2 Sep 2018 19:35:52 +0000 (21:35 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 3 Sep 2018 06:49:29 +0000 (08:49 +0200)
client/src/app/shared/instance/instance-features-table.component.html
client/src/app/shared/instance/instance-features-table.component.scss
client/src/app/shared/instance/instance-features-table.component.ts

index ba170f0743708b3bce01699c308ae7f60eb620c6..dc8db8cc1bedaa1565d1572bbc38336f1b13f4ae 100644 (file)
@@ -6,13 +6,13 @@
 
       <td class="value">
         <ng-container *ngIf="initialUserVideoQuota !== -1">
-          {{ initialUserVideoQuota | bytes: 0 }}
+          {{ initialUserVideoQuota | bytes: 0 }} <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
 
           <my-help helpType="custom" [customHtml]="quotaHelpIndication"></my-help>
         </ng-container>
 
         <ng-container i18n *ngIf="initialUserVideoQuota === -1">
-          Unlimited
+          Unlimited <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
         </ng-container>
       </td>
     </tr>
index d597a03bab031aa9ceed06192ed9172edef71974..90fbb5c94eb6c149aff2dbf2a607ef97dd771203 100644 (file)
@@ -3,7 +3,6 @@
 
 table {
   font-size: 14px;
-  max-width: 400px;
 
   .label {
     font-weight: $font-semibold;
index 1aad5aa8197f76329818c270c8dbe94fde7cb74e..da8da07023f391663fa44d60cddcdd32bfee9021 100644 (file)
@@ -21,6 +21,10 @@ export class InstanceFeaturesTableComponent implements OnInit {
     return this.serverService.getConfig().user.videoQuota
   }
 
+  get dailyUserVideoQuota () {
+    return this.serverService.getConfig().user.videoQuotaDaily
+  }
+
   ngOnInit () {
     this.serverService.configLoaded
         .subscribe(() => {