diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
commit | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (patch) | |
tree | fa29fcfd704cbc56c7bc3e3e1c15d84ea0f4dc61 /client/src/app/+admin | |
parent | 25ea1d85e155382367d11036617848fe69a1e6a4 (diff) | |
download | PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.gz PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.zst PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.zip |
Fix lint
Diffstat (limited to 'client/src/app/+admin')
11 files changed, 30 insertions, 38 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-advanced-configuration.component.html b/client/src/app/+admin/config/edit-custom-config/edit-advanced-configuration.component.html index a17b13fdf..bbf946df0 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-advanced-configuration.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-advanced-configuration.component.html | |||
@@ -3,7 +3,7 @@ | |||
3 | <div class="row mt-5"> <!-- cache grid --> | 3 | <div class="row mt-5"> <!-- cache grid --> |
4 | 4 | ||
5 | <div class="col-12 col-lg-4 col-xl-3"> | 5 | <div class="col-12 col-lg-4 col-xl-3"> |
6 | <div i18n class="inner-form-title">CACHE</div> | 6 | <h2 i18n class="inner-form-title">CACHE</h2> |
7 | <div i18n class="inner-form-description"> | 7 | <div i18n class="inner-form-description"> |
8 | Some files are not federated, and fetched when necessary. Define their caching policies. | 8 | Some files are not federated, and fetched when necessary. Define their caching policies. |
9 | </div> | 9 | </div> |
@@ -60,7 +60,7 @@ | |||
60 | <div class="row mt-4"> <!-- cache grid --> | 60 | <div class="row mt-4"> <!-- cache grid --> |
61 | <div class="col-12 col-lg-4 col-xl-3"> | 61 | <div class="col-12 col-lg-4 col-xl-3"> |
62 | <div class="anchor" id="customizations"></div> <!-- customizations anchor --> | 62 | <div class="anchor" id="customizations"></div> <!-- customizations anchor --> |
63 | <div i18n class="inner-form-title">CUSTOMIZATIONS</div> | 63 | <h2 i18n class="inner-form-title">CUSTOMIZATIONS</h2> |
64 | <div i18n class="inner-form-description"> | 64 | <div i18n class="inner-form-description"> |
65 | Slight modifications to your PeerTube instance for when creating a plugin or theme is overkill. | 65 | Slight modifications to your PeerTube instance for when creating a plugin or theme is overkill. |
66 | </div> | 66 | </div> |
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html index 9fc332308..50533ef73 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html | |||
@@ -1,7 +1,7 @@ | |||
1 | <ng-container [formGroup]="form"> | 1 | <ng-container [formGroup]="form"> |
2 | <div class="row mt-5"> <!-- appearance grid --> | 2 | <div class="row mt-5"> <!-- appearance grid --> |
3 | <div class="col-12 col-lg-4 col-xl-3"> | 3 | <div class="col-12 col-lg-4 col-xl-3"> |
4 | <div i18n class="inner-form-title">APPEARANCE</div> | 4 | <h2 i18n class="inner-form-title">APPEARANCE</h2> |
5 | <div i18n class="inner-form-description"> | 5 | <div i18n class="inner-form-description"> |
6 | Use <a class="link-orange" routerLink="/admin/plugins">plugins & themes</a> for more involved changes, or add slight <a class="link-orange" routerLink="/admin/config/edit-custom" fragment="advanced-configuration">customizations</a>. | 6 | Use <a class="link-orange" routerLink="/admin/plugins">plugins & themes</a> for more involved changes, or add slight <a class="link-orange" routerLink="/admin/config/edit-custom" fragment="advanced-configuration">customizations</a>. |
7 | </div> | 7 | </div> |
@@ -91,7 +91,7 @@ | |||
91 | 91 | ||
92 | <div class="row mt-4"> <!-- broadcast grid --> | 92 | <div class="row mt-4"> <!-- broadcast grid --> |
93 | <div class="col-12 col-lg-4 col-xl-3"> | 93 | <div class="col-12 col-lg-4 col-xl-3"> |
94 | <div i18n class="inner-form-title">BROADCAST MESSAGE</div> | 94 | <h2 i18n class="inner-form-title">BROADCAST MESSAGE</h2> |
95 | <div i18n class="inner-form-description"> | 95 | <div i18n class="inner-form-description"> |
96 | Display a message on your instance | 96 | Display a message on your instance |
97 | </div> | 97 | </div> |
@@ -147,7 +147,7 @@ | |||
147 | 147 | ||
148 | <div class="row mt-4"> <!-- new users grid --> | 148 | <div class="row mt-4"> <!-- new users grid --> |
149 | <div class="col-12 col-lg-4 col-xl-3"> | 149 | <div class="col-12 col-lg-4 col-xl-3"> |
150 | <div i18n class="inner-form-title">NEW USERS</div> | 150 | <h2 i18n class="inner-form-title">NEW USERS</h2> |
151 | <div i18n class="inner-form-description"> | 151 | <div i18n class="inner-form-description"> |
152 | Manage <a class="link-orange" routerLink="/admin/users">users</a> to set their quota individually. | 152 | Manage <a class="link-orange" routerLink="/admin/users">users</a> to set their quota individually. |
153 | </div> | 153 | </div> |
@@ -264,7 +264,7 @@ | |||
264 | 264 | ||
265 | <div class="row mt-4"> <!-- videos grid --> | 265 | <div class="row mt-4"> <!-- videos grid --> |
266 | <div class="col-12 col-lg-4 col-xl-3"> | 266 | <div class="col-12 col-lg-4 col-xl-3"> |
267 | <div i18n class="inner-form-title">VIDEOS</div> | 267 | <h2 i18n class="inner-form-title">VIDEOS</h2> |
268 | </div> | 268 | </div> |
269 | 269 | ||
270 | <div class="col-12 col-lg-8 col-xl-9"> | 270 | <div class="col-12 col-lg-8 col-xl-9"> |
@@ -350,7 +350,7 @@ | |||
350 | 350 | ||
351 | <div class="row mt-4"> <!-- video channels grid --> | 351 | <div class="row mt-4"> <!-- video channels grid --> |
352 | <div class="col-12 col-lg-4 col-xl-3"> | 352 | <div class="col-12 col-lg-4 col-xl-3"> |
353 | <div i18n class="inner-form-title">VIDEO CHANNELS</div> | 353 | <h2 i18n class="inner-form-title">VIDEO CHANNELS</h2> |
354 | </div> | 354 | </div> |
355 | 355 | ||
356 | <div class="col-12 col-lg-8 col-xl-9"> | 356 | <div class="col-12 col-lg-8 col-xl-9"> |
@@ -372,7 +372,7 @@ | |||
372 | 372 | ||
373 | <div class="row mt-4"> <!-- search grid --> | 373 | <div class="row mt-4"> <!-- search grid --> |
374 | <div class="col-12 col-lg-4 col-xl-3"> | 374 | <div class="col-12 col-lg-4 col-xl-3"> |
375 | <div i18n class="inner-form-title">SEARCH</div> | 375 | <h2 i18n class="inner-form-title">SEARCH</h2> |
376 | </div> | 376 | </div> |
377 | 377 | ||
378 | <div class="col-12 col-lg-8 col-xl-9"> | 378 | <div class="col-12 col-lg-8 col-xl-9"> |
@@ -461,7 +461,7 @@ | |||
461 | 461 | ||
462 | <div class="row mt-4"> <!-- federation grid --> | 462 | <div class="row mt-4"> <!-- federation grid --> |
463 | <div class="col-12 col-lg-4 col-xl-3"> | 463 | <div class="col-12 col-lg-4 col-xl-3"> |
464 | <div i18n class="inner-form-title">FEDERATION</div> | 464 | <h2 i18n class="inner-form-title">FEDERATION</h2> |
465 | <div i18n class="inner-form-description"> | 465 | <div i18n class="inner-form-description"> |
466 | Manage <a class="link-orange" routerLink="/admin/follows">relations</a> with other instances. | 466 | Manage <a class="link-orange" routerLink="/admin/follows">relations</a> with other instances. |
467 | </div> | 467 | </div> |
@@ -540,7 +540,7 @@ | |||
540 | 540 | ||
541 | <div class="row mt-4"> <!-- administrators grid --> | 541 | <div class="row mt-4"> <!-- administrators grid --> |
542 | <div class="col-12 col-lg-4 col-xl-3"> | 542 | <div class="col-12 col-lg-4 col-xl-3"> |
543 | <div i18n class="inner-form-title">ADMINISTRATORS</div> | 543 | <h2 i18n class="inner-form-title">ADMINISTRATORS</h2> |
544 | </div> | 544 | </div> |
545 | 545 | ||
546 | <div class="col-12 col-lg-8 col-xl-9"> | 546 | <div class="col-12 col-lg-8 col-xl-9"> |
@@ -568,7 +568,7 @@ | |||
568 | 568 | ||
569 | <div class="row mt-4"> <!-- Twitter grid --> | 569 | <div class="row mt-4"> <!-- Twitter grid --> |
570 | <div class="col-12 col-lg-4 col-xl-3"> | 570 | <div class="col-12 col-lg-4 col-xl-3"> |
571 | <div i18n class="inner-form-title">TWITTER</div> | 571 | <h2 i18n class="inner-form-title">TWITTER</h2> |
572 | <div i18n class="inner-form-description"> | 572 | <div i18n class="inner-form-description"> |
573 | Provide the Twitter account representing your instance to improve link previews. | 573 | Provide the Twitter account representing your instance to improve link previews. |
574 | If you don't have a Twitter account, just leave the default value. | 574 | If you don't have a Twitter account, just leave the default value. |
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.html b/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.html index 3d8414f5c..fd009367f 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.html | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | <div class="homepage row mt-5"> <!-- homepage grid --> | 5 | <div class="homepage row mt-5"> <!-- homepage grid --> |
6 | <div class="col-12 col-lg-4 col-xl-3"> | 6 | <div class="col-12 col-lg-4 col-xl-3"> |
7 | <div i18n class="inner-form-title">INSTANCE HOMEPAGE</div> | 7 | <h2 i18n class="inner-form-title">INSTANCE HOMEPAGE</h2> |
8 | </div> | 8 | </div> |
9 | 9 | ||
10 | <div class="col-12 col-lg-8 col-xl-9"> | 10 | <div class="col-12 col-lg-8 col-xl-9"> |
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html b/client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html index ff79ecc88..60f1aee2e 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | <div class="row mt-5"> <!-- instance grid --> | 5 | <div class="row mt-5"> <!-- instance grid --> |
6 | <div class="col-12 col-lg-4 col-xl-3"> | 6 | <div class="col-12 col-lg-4 col-xl-3"> |
7 | <div i18n class="inner-form-title">INSTANCE</div> | 7 | <h2 i18n class="inner-form-title">INSTANCE</h2> |
8 | </div> | 8 | </div> |
9 | 9 | ||
10 | <div class="col-12 col-lg-8 col-xl-9"> | 10 | <div class="col-12 col-lg-8 col-xl-9"> |
@@ -76,7 +76,7 @@ | |||
76 | 76 | ||
77 | <div class="row mt-4"> <!-- moderation & nsfw grid --> | 77 | <div class="row mt-4"> <!-- moderation & nsfw grid --> |
78 | <div class="col-12 col-lg-4 col-xl-3"> | 78 | <div class="col-12 col-lg-4 col-xl-3"> |
79 | <div i18n class="inner-form-title">MODERATION & NSFW</div> | 79 | <h2 i18n class="inner-form-title">MODERATION & NSFW</h2> |
80 | <div i18n class="inner-form-description"> | 80 | <div i18n class="inner-form-description"> |
81 | Manage <a class="link-orange" routerLink="/admin/users">users</a> to build a moderation team. | 81 | Manage <a class="link-orange" routerLink="/admin/users">users</a> to build a moderation team. |
82 | </div> | 82 | </div> |
@@ -154,7 +154,7 @@ | |||
154 | 154 | ||
155 | <div class="row mt-4"> <!-- you and your instance grid --> | 155 | <div class="row mt-4"> <!-- you and your instance grid --> |
156 | <div class="col-12 col-lg-4 col-xl-3"> | 156 | <div class="col-12 col-lg-4 col-xl-3"> |
157 | <div i18n class="inner-form-title">YOU AND YOUR INSTANCE</div> | 157 | <h2 i18n class="inner-form-title">YOU AND YOUR INSTANCE</h2> |
158 | </div> | 158 | </div> |
159 | 159 | ||
160 | <div class="col-12 col-lg-8 col-xl-9"> | 160 | <div class="col-12 col-lg-8 col-xl-9"> |
@@ -204,7 +204,7 @@ | |||
204 | 204 | ||
205 | <div class="row mt-4"> <!-- other information grid --> | 205 | <div class="row mt-4"> <!-- other information grid --> |
206 | <div class="col-12 col-lg-4 col-xl-3"> | 206 | <div class="col-12 col-lg-4 col-xl-3"> |
207 | <div i18n class="inner-form-title">OTHER INFORMATION</div> | 207 | <h2 i18n class="inner-form-title">OTHER INFORMATION</h2> |
208 | </div> | 208 | </div> |
209 | 209 | ||
210 | <div class="col-12 col-lg-8 col-xl-9"> | 210 | <div class="col-12 col-lg-8 col-xl-9"> |
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html b/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html index e9919741f..1ba3bdfe0 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | <div class="row mt-5"> | 3 | <div class="row mt-5"> |
4 | <div class="col-12 col-lg-4 col-xl-3"> | 4 | <div class="col-12 col-lg-4 col-xl-3"> |
5 | <div i18n class="inner-form-title">LIVE</div> | 5 | <h2 i18n class="inner-form-title">LIVE</h2> |
6 | <div i18n class="inner-form-description"> | 6 | <div i18n class="inner-form-description"> |
7 | Enable users of your instance to stream live. | 7 | Enable users of your instance to stream live. |
8 | </div> | 8 | </div> |
@@ -89,7 +89,7 @@ | |||
89 | 89 | ||
90 | <div class="row"> <!-- transcoding live streams grid --> | 90 | <div class="row"> <!-- transcoding live streams grid --> |
91 | <div class="col-12 col-lg-4 col-xl-3"> | 91 | <div class="col-12 col-lg-4 col-xl-3"> |
92 | <div i18n class="inner-form-title">TRANSCODING</div> | 92 | <h2 i18n class="inner-form-title">TRANSCODING</h2> |
93 | <div i18n class="inner-form-description"> | 93 | <div i18n class="inner-form-description"> |
94 | Same as VOD transcoding, transcoding live streams so that they are in a streamable form that any device can play. Requires a beefy CPU, and then some. | 94 | Same as VOD transcoding, transcoding live streams so that they are in a streamable form that any device can play. Requires a beefy CPU, and then some. |
95 | </div> | 95 | </div> |
@@ -111,7 +111,7 @@ | |||
111 | </div> | 111 | </div> |
112 | 112 | ||
113 | <div class="callout callout-light pt-2 mt-2 pb-0"> | 113 | <div class="callout callout-light pt-2 mt-2 pb-0"> |
114 | <label i18n>Output formats</label> | 114 | <h3 class="callout-title" i18n>Output formats</h3> |
115 | 115 | ||
116 | <div class="form-group" [ngClass]="getDisabledLiveTranscodingClass()"> | 116 | <div class="form-group" [ngClass]="getDisabledLiveTranscodingClass()"> |
117 | <label i18n for="liveTranscodingThreads">Live resolutions to generate</label> | 117 | <label i18n for="liveTranscodingThreads">Live resolutions to generate</label> |
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html index d3fc2e481..fb750aca6 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html | |||
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | <div class="row mt-4"> <!-- transcoding grid --> | 19 | <div class="row mt-4"> <!-- transcoding grid --> |
20 | <div class="col-12 col-lg-4 col-xl-3"> | 20 | <div class="col-12 col-lg-4 col-xl-3"> |
21 | <div i18n class="inner-form-title">TRANSCODING</div> | 21 | <h2 i18n class="inner-form-title">TRANSCODING</h2> |
22 | <div i18n class="inner-form-description"> | 22 | <div i18n class="inner-form-description"> |
23 | Process uploaded videos so that they are in a streamable form that any device can play. Though costly in | 23 | Process uploaded videos so that they are in a streamable form that any device can play. Though costly in |
24 | resources, this is a critical part of PeerTube, so tread carefully. | 24 | resources, this is a critical part of PeerTube, so tread carefully. |
@@ -38,7 +38,7 @@ | |||
38 | <ng-container ngProjectAs="extra"> | 38 | <ng-container ngProjectAs="extra"> |
39 | 39 | ||
40 | <div class="callout callout-light pt-2 pb-0"> | 40 | <div class="callout callout-light pt-2 pb-0"> |
41 | <label i18n>Input formats</label> | 41 | <h3 class="callout-title" i18n>Input formats</h3> |
42 | 42 | ||
43 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> | 43 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> |
44 | <my-peertube-checkbox | 44 | <my-peertube-checkbox |
@@ -65,7 +65,7 @@ | |||
65 | </div> | 65 | </div> |
66 | 66 | ||
67 | <div class="callout callout-light pt-2 mt-2 pb-0"> | 67 | <div class="callout callout-light pt-2 mt-2 pb-0"> |
68 | <label i18n>Output formats</label> | 68 | <h3 class="callout-title" i18n>Output formats</h3> |
69 | 69 | ||
70 | <ng-container formGroupName="webtorrent"> | 70 | <ng-container formGroupName="webtorrent"> |
71 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> | 71 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> |
@@ -108,7 +108,7 @@ | |||
108 | </ng-container> | 108 | </ng-container> |
109 | 109 | ||
110 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> | 110 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> |
111 | <label i18n>Resolutions to generate</label> | 111 | <div class="mb-2 fw-bold" i18n>Resolutions to generate</div> |
112 | 112 | ||
113 | <div class="ms-2 d-flex flex-column"> | 113 | <div class="ms-2 d-flex flex-column"> |
114 | <my-peertube-checkbox | 114 | <my-peertube-checkbox |
@@ -211,7 +211,7 @@ | |||
211 | 211 | ||
212 | <div class="row mt-2"> <!-- video studio grid --> | 212 | <div class="row mt-2"> <!-- video studio grid --> |
213 | <div class="col-12 col-lg-4 col-xl-3"> | 213 | <div class="col-12 col-lg-4 col-xl-3"> |
214 | <div i18n class="inner-form-title">VIDEO STUDIO</div> | 214 | <h2 i18n class="inner-form-title">VIDEO STUDIO</h2> |
215 | <div i18n class="inner-form-description"> | 215 | <div i18n class="inner-form-description"> |
216 | Allows your users to edit their video (cut, add intro/outro, add a watermark etc) | 216 | Allows your users to edit their video (cut, add intro/outro, add a watermark etc) |
217 | </div> | 217 | </div> |
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.html index 1605190f6..f46f36375 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.html +++ b/client/src/app/+admin/follows/following-list/following-list.component.html | |||
@@ -20,10 +20,10 @@ | |||
20 | > | 20 | > |
21 | </my-action-dropdown> | 21 | </my-action-dropdown> |
22 | 22 | ||
23 | <a *ngIf="!isInSelectionMode()" class="follow-button" (click)="openFollowModal()" (key.enter)="openFollowModal()"> | 23 | <button *ngIf="!isInSelectionMode()" class="peertube-create-button" (click)="openFollowModal()"> |
24 | <my-global-icon iconName="following" aria-hidden="true"></my-global-icon> | 24 | <my-global-icon iconName="following" aria-hidden="true"></my-global-icon> |
25 | <ng-container i18n>Follow</ng-container> | 25 | <ng-container i18n>Follow</ng-container> |
26 | </a> | 26 | </button> |
27 | </div> | 27 | </div> |
28 | 28 | ||
29 | <div class="ms-auto"> | 29 | <div class="ms-auto"> |
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.scss b/client/src/app/+admin/follows/following-list/following-list.component.scss index 0de80e563..405ddae5c 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.scss +++ b/client/src/app/+admin/follows/following-list/following-list.component.scss | |||
@@ -16,10 +16,6 @@ a { | |||
16 | } | 16 | } |
17 | } | 17 | } |
18 | 18 | ||
19 | .follow-button { | ||
20 | @include create-button; | ||
21 | } | ||
22 | |||
23 | my-delete-button { | 19 | my-delete-button { |
24 | max-width: 130px; | 20 | max-width: 130px; |
25 | } | 21 | } |
diff --git a/client/src/app/+admin/overview/users/user-edit/user-edit.component.html b/client/src/app/+admin/overview/users/user-edit/user-edit.component.html index ce3226857..7b3eadac2 100644 --- a/client/src/app/+admin/overview/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/overview/users/user-edit/user-edit.component.html | |||
@@ -219,17 +219,17 @@ | |||
219 | 219 | ||
220 | <div class="danger-zone"> | 220 | <div class="danger-zone"> |
221 | <div class="form-group"> | 221 | <div class="form-group"> |
222 | <label i18n>Send a link to reset the password by email to the user</label> | 222 | <div class="mb-1 fw-bold" i18n>Send a link to reset the password by email to the user</div> |
223 | <button (click)="resetPassword()" i18n>Ask for new password</button> | 223 | <button (click)="resetPassword()" i18n>Ask for new password</button> |
224 | </div> | 224 | </div> |
225 | 225 | ||
226 | <div class="form-group"> | 226 | <div class="form-group"> |
227 | <label i18n>Manually set the user password</label> | 227 | <div class="mb-1 fw-bold" i18n>Manually set the user password</div> |
228 | <my-user-password [userId]="user.id" [username]="user.username"></my-user-password> | 228 | <my-user-password [userId]="user.id" [username]="user.username"></my-user-password> |
229 | </div> | 229 | </div> |
230 | 230 | ||
231 | <div *ngIf="user.twoFactorEnabled" class="form-group"> | 231 | <div *ngIf="user.twoFactorEnabled" class="form-group"> |
232 | <label i18n>This user has two factor authentication enabled</label> | 232 | <div class="mb-1 fw-bold" i18n>This user has two factor authentication enabled</div> |
233 | <button (click)="disableTwoFactorAuth()" i18n>Disable two factor authentication</button> | 233 | <button (click)="disableTwoFactorAuth()" i18n>Disable two factor authentication</button> |
234 | </div> | 234 | </div> |
235 | </div> | 235 | </div> |
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.html b/client/src/app/+admin/overview/users/user-list/user-list.component.html index b7467d2cb..8c90f5a45 100644 --- a/client/src/app/+admin/overview/users/user-list/user-list.component.html +++ b/client/src/app/+admin/overview/users/user-list/user-list.component.html | |||
@@ -20,7 +20,7 @@ | |||
20 | > | 20 | > |
21 | </my-action-dropdown> | 21 | </my-action-dropdown> |
22 | 22 | ||
23 | <a *ngIf="!isInSelectionMode()" class="add-button" routerLink="/admin/users/create"> | 23 | <a *ngIf="!isInSelectionMode()" class="peertube-create-button" routerLink="/admin/users/create"> |
24 | <my-global-icon iconName="user-add" aria-hidden="true"></my-global-icon> | 24 | <my-global-icon iconName="user-add" aria-hidden="true"></my-global-icon> |
25 | <ng-container i18n>Create user</ng-container> | 25 | <ng-container i18n>Create user</ng-container> |
26 | </a> | 26 | </a> |
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.scss b/client/src/app/+admin/overview/users/user-list/user-list.component.scss index 2a3b955d2..559a00251 100644 --- a/client/src/app/+admin/overview/users/user-list/user-list.component.scss +++ b/client/src/app/+admin/overview/users/user-list/user-list.component.scss | |||
@@ -2,10 +2,6 @@ | |||
2 | @use '_mixins' as *; | 2 | @use '_mixins' as *; |
3 | @use 'bootstrap/scss/functions' as *; | 3 | @use 'bootstrap/scss/functions' as *; |
4 | 4 | ||
5 | .add-button { | ||
6 | @include create-button; | ||
7 | } | ||
8 | |||
9 | tr.banned > td { | 5 | tr.banned > td { |
10 | background-color: lighten($color: $red, $amount: 40) !important; | 6 | background-color: lighten($color: $red, $amount: 40) !important; |
11 | } | 7 | } |