]>
Commit | Line | Data |
---|---|---|
1 | <h1 class="sr-only" i18n>Settings</h1> | |
2 | <div class="form-row"> <!-- preview --> | |
3 | <div class="form-group col-12 col-lg-4 col-xl-3"></div> | |
4 | ||
5 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | |
6 | <my-actor-avatar-info [actor]="user.account" (avatarChange)="onAvatarChange($event)"></my-actor-avatar-info> | |
7 | </div> | |
8 | </div> | |
9 | ||
10 | <div class="form-row"> <!-- profile settings grid --> | |
11 | <div class="form-group col-12 col-lg-4 col-xl-3"> | |
12 | <h2 i18n class="account-title">PROFILE SETTINGS</h2> | |
13 | </div> | |
14 | ||
15 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | |
16 | ||
17 | <div class="user-quota mb-3"> | |
18 | <div> | |
19 | <div class="progress" i18n-title title="Total video quota"> | |
20 | <div class="progress-bar" role="progressbar" [style]="{ width: userVideoQuotaPercentage + '%' }" [attr.aria-valuenow]="userVideoQuotaUsed" aria-valuemin="0" [attr.aria-valuemax]="user.videoQuota">{{ userVideoQuotaUsed | bytes: 0 }}</div> | |
21 | <span class="ml-auto mr-2">{{ userVideoQuota }}</span> | |
22 | </div> | |
23 | </div> | |
24 | ||
25 | <div *ngIf="hasDailyQuota()" class="mt-3"> | |
26 | <div class="progress" i18n-title title="Daily video quota"> | |
27 | <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> | |
28 | <span class="ml-auto mr-2">{{ userVideoQuotaDaily }}</span> | |
29 | </div> | |
30 | </div> | |
31 | </div> | |
32 | ||
33 | <my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile> | |
34 | </div> | |
35 | </div> | |
36 | ||
37 | <div class="form-row mt-5"> <!-- video settings grid --> | |
38 | <div class="form-group col-12 col-lg-4 col-xl-3"> | |
39 | <div class="anchor" id="video-settings"></div> <!-- video settings anchor --> | |
40 | <h2 i18n class="account-title">VIDEO SETTINGS</h2> | |
41 | </div> | |
42 | ||
43 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | |
44 | <my-user-video-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-video-settings> | |
45 | </div> | |
46 | </div> | |
47 | ||
48 | <div class="form-row mt-5"> <!-- notifications grid --> | |
49 | <div class="form-group col-12 col-lg-4 col-xl-3"> | |
50 | <div class="anchor" id="notifications"></div> <!-- notifications anchor --> | |
51 | <h2 i18n class="account-title">NOTIFICATIONS</h2> | |
52 | </div> | |
53 | ||
54 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | |
55 | <my-account-notification-preferences [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-notification-preferences> | |
56 | </div> | |
57 | </div> | |
58 | ||
59 | <div class="form-row mt-5"> <!-- interface grid --> | |
60 | <div class="form-group col-12 col-lg-4 col-xl-3"> | |
61 | <h2 i18n class="account-title">INTERFACE</h2> | |
62 | </div> | |
63 | ||
64 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | |
65 | <my-user-interface-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-interface-settings> | |
66 | </div> | |
67 | </div> | |
68 | ||
69 | <div class="form-row mt-5" *ngIf="user.pluginAuth === null"> <!-- password grid --> | |
70 | <div class="form-group col-12 col-lg-4 col-xl-3"> | |
71 | <h2 i18n class="account-title">PASSWORD</h2> | |
72 | </div> | |
73 | ||
74 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | |
75 | <my-account-change-password></my-account-change-password> | |
76 | </div> | |
77 | </div> | |
78 | ||
79 | <div class="form-row mt-5"> <!-- email grid --> | |
80 | <div class="form-group col-12 col-lg-4 col-xl-3"> | |
81 | <h2 i18n class="account-title">EMAIL</h2> | |
82 | </div> | |
83 | ||
84 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | |
85 | <my-account-change-email></my-account-change-email> | |
86 | </div> | |
87 | </div> | |
88 | ||
89 | <div class="form-row mt-5"> <!-- danger zone grid --> | |
90 | <div class="form-group col-12 col-lg-4 col-xl-3"> | |
91 | <h2 i18n class="account-title account-title-danger">DANGER ZONE</h2> | |
92 | </div> | |
93 | ||
94 | <div class="form-group form-group-right col-12 col-lg-8 col-xl-9"> | |
95 | <my-account-danger-zone [user]="user"></my-account-danger-zone> | |
96 | </div> | |
97 | </div> |