aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/users/user-quota.component.html
blob: f9fb32133b2ab8b6a50a44ef986aec4379b170c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div class="user-quota mb-3">
  <div>
    <strong class="user-quota-title" tabindex="0" i18n>Total video quota</strong>
    <div class="progress" tabindex="0" [ngbTooltip]="titleVideoQuota()">
      <div class="progress-bar" tabindex="0" role="progressbar" [style]="{ width: userVideoQuotaPercentage + '%' }"
        [attr.aria-valuenow]="userVideoQuotaUsed" aria-valuemin="0" [attr.aria-valuemax]="user.videoQuota">
        {{ userVideoQuotaUsed | bytes: 0 }}</div>
      <span class="ml-auto mr-2">{{ userVideoQuota }}</span>
    </div>
  </div>

  <div *ngIf="hasDailyQuota()" class="mt-3">
    <strong class="user-quota-title" tabindex="0" i18n>Daily video quota</strong>
    <div class="progress" tabindex="0" [ngbTooltip]="titleVideoQuotaDaily()">
      <div class="progress-bar secondary" role="progressbar" [style]="{ width: userVideoQuotaDailyPercentage + '%' }"
        [attr.aria-valuenow]="userVideoQuotaUsedDaily" aria-valuemin="0" [attr.aria-valuemax]="user.videoQuotaDaily">
        {{ userVideoQuotaUsedDaily | bytes: 0 }}</div>
      <span class="ml-auto mr-2">{{ userVideoQuotaDaily }}</span>
    </div>
  </div>
</div>