aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-17 14:44:19 +0200
committerChocobozzz <me@florianbigard.com>2018-07-17 14:56:15 +0200
commit0f7fedc39857ebc0eb29182c1588a92b9adfb75a (patch)
treef1516e93a93d1042bbc4d14d10575b88cae6bba1 /client/src/app/+admin
parent4bdd9473fdecfa7e309e3c59b05b29d0a20ac397 (diff)
downloadPeerTube-0f7fedc39857ebc0eb29182c1588a92b9adfb75a.tar.gz
PeerTube-0f7fedc39857ebc0eb29182c1588a92b9adfb75a.tar.zst
PeerTube-0f7fedc39857ebc0eb29182c1588a92b9adfb75a.zip
Improve frontend accessibility
In particular checkboxes, likes/dislikes, share button, video thumbnails and help buttons
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html50
1 files changed, 19 insertions, 31 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
index 97900e523..6e3f83ccf 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
@@ -85,12 +85,10 @@
85 85
86 <div i18n class="inner-form-title">Signup</div> 86 <div i18n class="inner-form-title">Signup</div>
87 87
88 <div class="form-group"> 88 <my-peertube-checkbox
89 <input type="checkbox" id="signupEnabled" formControlName="signupEnabled"> 89 inputName="signupEnabled" formControlName="signupEnabled"
90 90 i18n-labelText labelText="Signup enabled"
91 <label for="signupEnabled"></label> 91 ></my-peertube-checkbox>
92 <label i18n for="signupEnabled">Signup enabled</label>
93 </div>
94 92
95 <div *ngIf="isSignupEnabled()" class="form-group"> 93 <div *ngIf="isSignupEnabled()" class="form-group">
96 <label i18n for="signupLimit">Signup limit</label> 94 <label i18n for="signupLimit">Signup limit</label>
@@ -152,33 +150,24 @@
152 </div> 150 </div>
153 </div> 151 </div>
154 152
155 <div class="form-group"> 153 <my-peertube-checkbox
156 <input type="checkbox" id="servicesTwitterWhitelisted" formControlName="servicesTwitterWhitelisted"> 154 inputName="servicesTwitterWhitelisted" formControlName="servicesTwitterWhitelisted"
157 155 i18n-labelText labelText="Instance whitelisted by Twitter"
158 <label for="servicesTwitterWhitelisted"></label> 156 i18n-helpHtml helpHtml="If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.<br />
159 <label i18n for="servicesTwitterWhitelisted">Instance whitelisted by Twitter</label>
160 <my-help
161 helpType="custom" i18n-customHtml
162 customHtml="If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.<br />
163If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.<br /><br /> 157If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.<br /><br />
164Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'>https://cards-dev.twitter.com/validator</a> to see if you instance is whitelisted." 158Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'>https://cards-dev.twitter.com/validator</a> to see if you instance is whitelisted."
165 ></my-help> 159 ></my-peertube-checkbox>
166
167 </div>
168 </tab> 160 </tab>
169 161
170 <tab i18n-heading heading="Advanced configuration"> 162 <tab i18n-heading heading="Advanced configuration">
171 163
172 <div i18n class="inner-form-title">Transcoding</div> 164 <div i18n class="inner-form-title">Transcoding</div>
173 165
174 <div class="form-group"> 166 <my-peertube-checkbox
175 <input type="checkbox" id="transcodingEnabled" formControlName="transcodingEnabled"> 167 inputName="transcodingEnabled" formControlName="transcodingEnabled"
176 168 i18n-labelText labelText="Transcoding enabled"
177 <label for="transcodingEnabled"></label> 169 i18n-helpHtml helpHtml="If you disable transcoding, many videos from your users will not work!"
178 <label i18n for="transcodingEnabled">Transcoding enabled</label> 170 ></my-peertube-checkbox>
179
180 <my-help helpType="custom" i18n-customHtml customHtml="If you disable transcoding, many videos from your users will not work!"></my-help>
181 </div>
182 171
183 <ng-template [ngIf]="isTranscodingEnabled()"> 172 <ng-template [ngIf]="isTranscodingEnabled()">
184 173
@@ -197,12 +186,11 @@ Check this checkbox, save the configuration and test with a video URL of your in
197 </div> 186 </div>
198 187
199 <div class="form-group" *ngFor="let resolution of resolutions"> 188 <div class="form-group" *ngFor="let resolution of resolutions">
200 <input 189 <my-peertube-checkbox
201 type="checkbox" [id]="getResolutionKey(resolution)" 190 [inputName]="getResolutionKey(resolution)" [formControlName]="getResolutionKey(resolution)"
202 [formControlName]="getResolutionKey(resolution)" 191 i18n-labelText labelText="Resolution {{resolution}} enabled"
203 > 192 ></my-peertube-checkbox>
204 <label [for]="getResolutionKey(resolution)"></label> 193
205 <label i18n [for]="getResolutionKey(resolution)">Resolution {{ resolution }} enabled</label>
206 </div> 194 </div>
207 </ng-template> 195 </ng-template>
208 196