]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-settings/my-account-settings.component.html
factorize account/server blocklists for users and instance (#2875)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-settings / my-account-settings.component.html
CommitLineData
c9e3565d 1<h1 class="sr-only" i18n>Settings</h1>
482fa503
RK
2<div class="form-row"> <!-- profile grid -->
3 <div class="form-group col-12 col-lg-4 col-xl-3">
c9e3565d 4 <h2 i18n class="account-title">PROFILE</h2>
482fa503
RK
5 </div>
6
7 <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
8 <my-actor-avatar-info [actor]="user.account" (avatarChange)="onAvatarChange($event)"></my-actor-avatar-info>
9
10 <div class="user-quota mb-3">
11 <div>
df8914c9
RK
12 <div class="progress" i18n-title title="Total video quota">
13 <div class="progress-bar" role="progressbar" [style]="{ width: userVideoQuotaPercentage + '%' }" [attr.aria-valuenow]="userVideoQuotaUsed" aria-valuemin="0" [attr.aria-valuemax]="userVideoQuota">{{ userVideoQuotaUsed | bytes: 0 }}</div>
14 <span class="ml-auto mr-2">{{ userVideoQuota }}</span>
15 </div>
482fa503
RK
16 </div>
17
df8914c9
RK
18 <div *ngIf="hasDailyQuota()" class="mt-3">
19 <div class="progress" i18n-title title="Daily video quota">
e61151b0 20 <div class="progress-bar secondary" role="progressbar" [style]="{ width: userVideoQuotaDailyPercentage + '%' }" [attr.aria-valuenow]="userVideoQuotaUsedDaily" aria-valuemin="0" [attr.aria-valuemax]="userVideoQuotaDaily">{{ userVideoQuotaUsedDaily | bytes: 0 }}</div>
df8914c9
RK
21 <span class="ml-auto mr-2">{{ userVideoQuotaDaily }}</span>
22 </div>
482fa503
RK
23 </div>
24 </div>
25
26 <my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile>
27 </div>
28</div>
2295ce6c 29
482fa503
RK
30<div class="form-row mt-5"> <!-- video settings grid -->
31 <div class="form-group col-12 col-lg-4 col-xl-3">
8227643b 32 <div class="anchor" id="video-settings"></div> <!-- video settings anchor -->
c9e3565d 33 <h2 i18n class="account-title">VIDEO SETTINGS</h2>
66fd1516
C
34 </div>
35
482fa503
RK
36 <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
37 <my-account-video-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-video-settings>
66fd1516 38 </div>
ce5496d6
C
39</div>
40
482fa503
RK
41<div class="form-row mt-5"> <!-- notifications grid -->
42 <div class="form-group col-12 col-lg-4 col-xl-3">
45e0d669 43 <div class="anchor" id="notifications"></div> <!-- notifications anchor -->
c9e3565d 44 <h2 i18n class="account-title">NOTIFICATIONS</h2>
482fa503 45 </div>
ed56ad11 46
482fa503
RK
47 <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
48 <my-account-notification-preferences [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-notification-preferences>
49 </div>
50</div>
3caf77d3 51
482fa503
RK
52<div class="form-row mt-5"> <!-- interface grid -->
53 <div class="form-group col-12 col-lg-4 col-xl-3">
c9e3565d 54 <h2 i18n class="account-title">INTERFACE</h2>
482fa503 55 </div>
2f1548fd 56
482fa503
RK
57 <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
58 <my-account-interface-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-interface-settings>
59 </div>
60</div>
7cd4d2ba 61
9a7fd960 62<div class="form-row mt-5" *ngIf="user.pluginAuth === null"> <!-- password grid -->
482fa503 63 <div class="form-group col-12 col-lg-4 col-xl-3">
c9e3565d 64 <h2 i18n class="account-title">PASSWORD</h2>
482fa503
RK
65 </div>
66
67 <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
68 <my-account-change-password></my-account-change-password>
69 </div>
70</div>
71
72<div class="form-row mt-5"> <!-- email grid -->
73 <div class="form-group col-12 col-lg-4 col-xl-3">
c9e3565d 74 <h2 i18n class="account-title">EMAIL</h2>
482fa503 75 </div>
c30745f3 76
482fa503
RK
77 <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
78 <my-account-change-email></my-account-change-email>
79 </div>
80</div>
81
82<div class="form-row mt-5"> <!-- danger zone grid -->
83 <div class="form-group col-12 col-lg-4 col-xl-3">
c9e3565d 84 <h2 i18n class="account-title">DANGER ZONE</h2>
482fa503 85 </div>
0ba5f5ba 86
482fa503
RK
87 <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
88 <my-account-danger-zone [user]="user"></my-account-danger-zone>
89 </div>
90</div>