aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
blob: 185f132751529c7df52246f5ee8188d524037730 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<h1 class="sr-only" i18n>Settings</h1>
<div class="form-row"> <!-- preview -->
  <div class="form-group col-12 col-lg-4 col-xl-3"></div>

  <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
    <my-actor-avatar-info [actor]="user.account" (avatarChange)="onAvatarChange($event)"></my-actor-avatar-info>
  </div>
</div>

<div class="form-row"> <!-- profile settings grid -->
  <div class="form-group col-12 col-lg-4 col-xl-3">
    <h2 i18n class="account-title">PROFILE SETTINGS</h2>
  </div>

  <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">

    <div class="user-quota mb-3">
      <div>
        <div class="progress" i18n-title title="Total video quota">
          <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>
          <span class="ml-auto mr-2">{{ userVideoQuota }}</span>
        </div>
      </div>

      <div *ngIf="hasDailyQuota()" class="mt-3">
        <div class="progress" i18n-title title="Daily video quota">
          <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>

    <my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile>
  </div>
</div>

<div class="form-row mt-5"> <!-- video settings grid -->
  <div class="form-group col-12 col-lg-4 col-xl-3">
    <div class="anchor" id="video-settings"></div> <!-- video settings anchor -->
    <h2 i18n class="account-title">VIDEO SETTINGS</h2>
  </div>

  <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
    <my-user-video-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-video-settings>
  </div>
</div>

<div class="form-row mt-5"> <!-- notifications grid -->
  <div class="form-group col-12 col-lg-4 col-xl-3">
    <div class="anchor" id="notifications"></div> <!-- notifications anchor -->
    <h2 i18n class="account-title">NOTIFICATIONS</h2>
  </div>

  <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
    <my-account-notification-preferences [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-notification-preferences>
  </div>
</div>

<div class="form-row mt-5"> <!-- interface grid -->
  <div class="form-group col-12 col-lg-4 col-xl-3">
    <h2 i18n class="account-title">INTERFACE</h2>
  </div>

  <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
    <my-user-interface-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-interface-settings>
  </div>
</div>

<div class="form-row mt-5" *ngIf="user.pluginAuth === null"> <!-- password grid -->
  <div class="form-group col-12 col-lg-4 col-xl-3">
    <h2 i18n class="account-title">PASSWORD</h2>
  </div>

  <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
    <my-account-change-password></my-account-change-password>
  </div>
</div>

<div class="form-row mt-5"> <!-- email grid -->
  <div class="form-group col-12 col-lg-4 col-xl-3">
    <h2 i18n class="account-title">EMAIL</h2>
  </div>

  <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
    <my-account-change-email></my-account-change-email>
  </div>
</div>

<div class="form-row mt-5"> <!-- danger zone grid -->
  <div class="form-group col-12 col-lg-4 col-xl-3">
    <h2 i18n class="account-title">DANGER ZONE</h2>
  </div>

  <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
    <my-account-danger-zone [user]="user"></my-account-danger-zone>
  </div>
</div>