aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-03-13 01:29:11 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-03-13 01:43:52 +0100
commitdf8914c9a2d6dbb435460b9e252a771cac47880b (patch)
tree7413eaf0012ed91354a1471f1252e09cf7685bb6 /client/src/app/+my-account/my-account-settings/my-account-settings.component.html
parentc547bbf96a46166c4b4548413b092c58f7b0e37a (diff)
downloadPeerTube-df8914c9a2d6dbb435460b9e252a771cac47880b.tar.gz
PeerTube-df8914c9a2d6dbb435460b9e252a771cac47880b.tar.zst
PeerTube-df8914c9a2d6dbb435460b9e252a771cac47880b.zip
More modern avatar upload, quota represented with progress bars
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-settings.component.html')
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-settings.component.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
index ddcde828c..6fee087fb 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
@@ -8,13 +8,17 @@
8 8
9 <div class="user-quota mb-3"> 9 <div class="user-quota mb-3">
10 <div> 10 <div>
11 <label i18n>Total video quota:</label> 11 <div class="progress" i18n-title title="Total video quota">
12 <ng-container i18n>{{ userVideoQuotaUsed | bytes: 0 }} used</ng-container> / {{ userVideoQuota }} 12 <div class="progress-bar" role="progressbar" [style]="{ width: userVideoQuotaPercentage + '%' }" [attr.aria-valuenow]="userVideoQuotaUsed" aria-valuemin="0" [attr.aria-valuemax]="userVideoQuota">{{ userVideoQuotaUsed | bytes: 0 }}</div>
13 <span class="ml-auto mr-2">{{ userVideoQuota }}</span>
14 </div>
13 </div> 15 </div>
14 16
15 <div *ngIf="hasDailyQuota()"> 17 <div *ngIf="hasDailyQuota()" class="mt-3">
16 <label i18n>Daily video quota:</label> 18 <div class="progress" i18n-title title="Daily video quota">
17 <ng-container>{{ userVideoQuotaUsedDaily | bytes: 0 }} used</ng-container> / {{ userVideoQuotaDaily }} 19 <div class="progress-bar progress-bar-secondary" role="progressbar" [style]="{ width: userVideoQuotaDailyPercentage + '%' }" [attr.aria-valuenow]="userVideoQuotaUsedDaily" aria-valuemin="0" [attr.aria-valuemax]="userVideoQuotaDaily">{{ userVideoQuotaUsedDaily | bytes: 0 }}</div>
20 <span class="ml-auto mr-2">{{ userVideoQuotaDaily }}</span>
21 </div>
18 </div> 22 </div>
19 </div> 23 </div>
20 24