]>
Commit | Line | Data |
---|---|---|
5f46d28c | 1 | <ng-container [formGroup]="form"> |
4c8749cb C |
2 | <div class="row mt-5"> <!-- appearance grid --> |
3 | <div class="col-12 col-lg-4 col-xl-3"> | |
5f46d28c C |
4 | <div i18n class="inner-form-title">APPEARANCE</div> |
5 | <div i18n class="inner-form-description"> | |
5b0ec7cd | 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>. |
5f46d28c C |
7 | </div> |
8 | </div> | |
9 | ||
4c8749cb | 10 | <div class="col-12 col-lg-8 col-xl-9"> |
5f46d28c C |
11 | |
12 | <ng-container formGroupName="theme"> | |
13 | <div class="form-group"> | |
14 | <label i18n for="themeDefault">Theme</label> | |
15 | ||
16 | <div class="peertube-select-container"> | |
17 | <select formControlName="default" id="themeDefault" class="form-control"> | |
5e93a6d1 | 18 | <option i18n value="default">{{ getDefaultThemeLabel() }}</option> |
5f46d28c | 19 | |
00fe5d61 | 20 | <option *ngFor="let theme of availableThemes" [value]="theme.id">{{ theme.label }}</option> |
5f46d28c C |
21 | </select> |
22 | </div> | |
23 | </div> | |
24 | </ng-container> | |
25 | ||
26 | <div class="form-group" formGroupName="instance"> | |
27 | <label i18n for="instanceDefaultClientRoute">Landing page</label> | |
70e33515 | 28 | |
2539932e C |
29 | <my-select-custom-value |
30 | id="instanceDefaultClientRoute" | |
31 | [items]="defaultLandingPageOptions" | |
32 | formControlName="defaultClientRoute" | |
33 | inputType="text" | |
34 | [clearable]="false" | |
35 | ></my-select-custom-value> | |
70e33515 | 36 | |
5f46d28c C |
37 | <div *ngIf="formErrors.instance.defaultClientRoute" class="form-error">{{ formErrors.instance.defaultClientRoute }}</div> |
38 | </div> | |
39 | ||
40 | <div class="form-group" formGroupName="trending"> | |
41 | <ng-container formGroupName="videos"> | |
42 | <ng-container formGroupName="algorithms"> | |
43 | <label i18n for="trendingVideosAlgorithmsDefault">Default trending page</label> | |
70e33515 | 44 | |
5f46d28c C |
45 | <div class="peertube-select-container"> |
46 | <select id="trendingVideosAlgorithmsDefault" formControlName="default" class="form-control"> | |
5f46d28c C |
47 | <option i18n value="hot">Hot videos</option> |
48 | <option i18n value="most-viewed">Most viewed videos</option> | |
49 | <option i18n value="most-liked">Most liked videos</option> | |
50 | </select> | |
51 | </div> | |
70e33515 | 52 | |
5f46d28c C |
53 | <div *ngIf="formErrors.trending.videos.algorithms.default" class="form-error">{{ formErrors.trending.videos.algorithms.default }}</div> |
54 | </ng-container> | |
55 | </ng-container> | |
56 | </div> | |
57 | ||
0bc53e20 C |
58 | <ng-container formGroupName="client"> |
59 | ||
60 | <ng-container formGroupName="videos"> | |
61 | <ng-container formGroupName="miniature"> | |
62 | <div class="form-group"> | |
63 | <my-peertube-checkbox | |
64 | inputName="clientVideosMiniaturePreferAuthorDisplayName" formControlName="preferAuthorDisplayName" | |
65 | i18n-labelText labelText="Prefer author display name in video miniature" | |
66 | ></my-peertube-checkbox> | |
67 | </div> | |
68 | </ng-container> | |
69 | </ng-container> | |
70 | ||
71 | <ng-container formGroupName="menu"> | |
72 | <ng-container formGroupName="login"> | |
73 | <div class="form-group"> | |
74 | <my-peertube-checkbox | |
75 | inputName="clientMenuLoginRedirectOnSingleExternalAuth" formControlName="redirectOnSingleExternalAuth" | |
76 | i18n-labelText labelText="Redirect users on single external auth when users click on the login button in menu" | |
77 | > | |
78 | <ng-container ngProjectAs="description"> | |
79 | <span *ngIf="countExternalAuth() === 0" i18n>⚠️ You don't have any external auth plugin enabled.</span> | |
80 | <span *ngIf="countExternalAuth() > 1" i18n>⚠️ You have multiple external auth plugins enabled.</span> | |
81 | </ng-container> | |
82 | </my-peertube-checkbox> | |
83 | </div> | |
84 | </ng-container> | |
85 | </ng-container> | |
86 | </ng-container> | |
87 | ||
5f46d28c C |
88 | </div> |
89 | </div> | |
90 | ||
4c8749cb C |
91 | <div class="row mt-4"> <!-- broadcast grid --> |
92 | <div class="col-12 col-lg-4 col-xl-3"> | |
5f46d28c | 93 | <div i18n class="inner-form-title">BROADCAST MESSAGE</div> |
5b0ec7cd | 94 | <div i18n class="inner-form-description"> |
5f46d28c C |
95 | Display a message on your instance |
96 | </div> | |
97 | </div> | |
98 | ||
4c8749cb | 99 | <div class="col-12 col-lg-8 col-xl-9"> |
5f46d28c C |
100 | |
101 | <ng-container formGroupName="broadcastMessage"> | |
102 | ||
103 | <div class="form-group"> | |
104 | <my-peertube-checkbox | |
105 | inputName="broadcastMessageEnabled" formControlName="enabled" | |
106 | i18n-labelText labelText="Enable broadcast message" | |
107 | ></my-peertube-checkbox> | |
108 | </div> | |
109 | ||
110 | <div class="form-group"> | |
111 | <my-peertube-checkbox | |
112 | inputName="broadcastMessageDismissable" formControlName="dismissable" | |
113 | i18n-labelText labelText="Allow users to dismiss the broadcast message " | |
114 | ></my-peertube-checkbox> | |
115 | </div> | |
116 | ||
117 | <div class="form-group"> | |
118 | <label i18n for="broadcastMessageLevel">Broadcast message level</label> | |
70e33515 | 119 | |
5f46d28c C |
120 | <div class="peertube-select-container"> |
121 | <select id="broadcastMessageLevel" formControlName="level" class="form-control"> | |
122 | <option value="info">info</option> | |
2c2631e4 | 123 | <option value="warning">warning</option> |
5f46d28c C |
124 | <option value="error">error</option> |
125 | </select> | |
126 | </div> | |
70e33515 | 127 | |
5f46d28c C |
128 | <div *ngIf="formErrors.broadcastMessage.level" class="form-error">{{ formErrors.broadcastMessage.level }}</div> |
129 | </div> | |
130 | ||
131 | <div class="form-group"> | |
132 | <label i18n for="broadcastMessageMessage">Message</label><my-help helpType="markdownText"></my-help> | |
70e33515 | 133 | |
5f46d28c | 134 | <my-markdown-textarea |
9bc36223 C |
135 | name="broadcastMessageMessage" formControlName="message" |
136 | [formError]="formErrors['broadcastMessage.message']" | |
5f46d28c | 137 | ></my-markdown-textarea> |
70e33515 | 138 | |
5f46d28c C |
139 | <div *ngIf="formErrors.broadcastMessage.message" class="form-error">{{ formErrors.broadcastMessage.message }}</div> |
140 | </div> | |
141 | ||
142 | </ng-container> | |
143 | ||
144 | </div> | |
145 | </div> | |
146 | ||
4c8749cb C |
147 | <div class="row mt-4"> <!-- new users grid --> |
148 | <div class="col-12 col-lg-4 col-xl-3"> | |
5f46d28c | 149 | <div i18n class="inner-form-title">NEW USERS</div> |
5b0ec7cd C |
150 | <div i18n class="inner-form-description"> |
151 | Manage <a class="link-orange" routerLink="/admin/users">users</a> to set their quota individually. | |
5f46d28c C |
152 | </div> |
153 | </div> | |
154 | ||
4c8749cb | 155 | <div class="col-12 col-lg-8 col-xl-9"> |
5f46d28c C |
156 | |
157 | <ng-container formGroupName="signup"> | |
158 | <div class="form-group"> | |
159 | <my-peertube-checkbox | |
160 | inputName="signupEnabled" formControlName="enabled" | |
161 | i18n-labelText labelText="Enable Signup" | |
162 | > | |
163 | <ng-container ngProjectAs="description"> | |
164 | <span i18n>⚠️ This functionality requires a lot of attention and extra moderation.</span> | |
165 | ||
b13a0a48 | 166 | <div class="alert pt-alert-primary alert-signup" *ngIf="signupAlertMessage">{{ signupAlertMessage }}</div> |
5f46d28c C |
167 | </ng-container> |
168 | ||
169 | <ng-container ngProjectAs="extra"> | |
70e33515 | 170 | <my-peertube-checkbox [ngClass]="getDisabledSignupClass()" |
5f46d28c C |
171 | inputName="signupRequiresEmailVerification" formControlName="requiresEmailVerification" |
172 | i18n-labelText labelText="Signup requires email verification" | |
173 | ></my-peertube-checkbox> | |
174 | ||
70e33515 | 175 | <div [ngClass]="getDisabledSignupClass()" class="mt-3"> |
5f46d28c | 176 | <label i18n for="signupLimit">Signup limit</label> |
70e33515 | 177 | |
5f46d28c C |
178 | <div class="number-with-unit"> |
179 | <input | |
180 | type="number" min="-1" id="signupLimit" class="form-control" | |
181 | formControlName="limit" [ngClass]="{ 'input-error': formErrors['signup.limit'] }" | |
182 | > | |
183 | <span i18n>{form.value['signup']['limit'], plural, =1 {user} other {users}}</span> | |
184 | </div> | |
70e33515 | 185 | |
5f46d28c | 186 | <div *ngIf="formErrors.signup.limit" class="form-error">{{ formErrors.signup.limit }}</div> |
70e33515 | 187 | |
5b0ec7cd | 188 | <small i18n *ngIf="hasUnlimitedSignup()" class="muted small">Signup won't be limited to a fixed number of users.</small> |
5f46d28c | 189 | </div> |
1f256e7d P |
190 | |
191 | <div [ngClass]="getDisabledSignupClass()" class="mt-3"> | |
192 | <label i18n for="signupMinimumAge">Minimum required age to create an account</label> | |
193 | ||
194 | <div class="number-with-unit"> | |
195 | <input | |
196 | type="number" min="1" id="signupMinimumAge" class="form-control" | |
197 | formControlName="minimumAge" [ngClass]="{ 'input-error': formErrors['signup.minimumAge'] }" | |
198 | > | |
199 | <span i18n>{form.value['signup']['minimumAge'], plural, =1 {year old} other {years old}}</span> | |
200 | </div> | |
201 | ||
202 | <div *ngIf="formErrors.signup.minimumAge" class="form-error">{{ formErrors.signup.minimumAge }}</div> | |
203 | </div> | |
5f46d28c C |
204 | </ng-container> |
205 | </my-peertube-checkbox> | |
206 | </div> | |
207 | </ng-container> | |
208 | ||
209 | <ng-container formGroupName="user"> | |
210 | <div class="form-group"> | |
211 | <label i18n for="userVideoQuota">Default video quota per user</label> | |
212 | ||
213 | <my-select-custom-value | |
214 | id="userVideoQuota" | |
215 | [items]="getVideoQuotaOptions()" | |
216 | formControlName="videoQuota" | |
217 | i18n-inputSuffix inputSuffix="bytes" inputType="number" | |
218 | [clearable]="false" | |
219 | ></my-select-custom-value> | |
220 | ||
f67ac646 | 221 | <my-user-real-quota-info [videoQuota]="getUserVideoQuota()"></my-user-real-quota-info> |
b0d6a800 | 222 | |
5f46d28c C |
223 | <div *ngIf="formErrors.user.videoQuota" class="form-error">{{ formErrors.user.videoQuota }}</div> |
224 | </div> | |
225 | ||
226 | <div class="form-group"> | |
227 | <label i18n for="userVideoQuotaDaily">Default daily upload limit per user</label> | |
228 | ||
229 | <my-select-custom-value | |
230 | id="userVideoQuotaDaily" | |
231 | [items]="getVideoQuotaDailyOptions()" | |
232 | formControlName="videoQuotaDaily" | |
233 | i18n-inputSuffix inputSuffix="bytes" inputType="number" | |
234 | [clearable]="false" | |
235 | ></my-select-custom-value> | |
236 | ||
237 | <div *ngIf="formErrors.user.videoQuotaDaily" class="form-error">{{ formErrors.user.videoQuotaDaily }}</div> | |
238 | </div> | |
239 | </ng-container> | |
240 | ||
241 | </div> | |
242 | </div> | |
243 | ||
4c8749cb C |
244 | <div class="row mt-4"> <!-- videos grid --> |
245 | <div class="col-12 col-lg-4 col-xl-3"> | |
5f46d28c C |
246 | <div i18n class="inner-form-title">VIDEOS</div> |
247 | </div> | |
248 | ||
4c8749cb | 249 | <div class="col-12 col-lg-8 col-xl-9"> |
5f46d28c C |
250 | |
251 | <ng-container formGroupName="import"> | |
252 | ||
253 | <ng-container formGroupName="videos"> | |
254 | ||
4c8749cb | 255 | <div class="form-group"> |
5f46d28c | 256 | <label i18n for="importConcurrency">Import jobs concurrency</label> |
5b0ec7cd | 257 | <span i18n class="small muted ms-1">allows to import multiple videos in parallel. ⚠️ Requires a PeerTube restart.</span> |
5f46d28c C |
258 | |
259 | <div class="number-with-unit"> | |
260 | <input type="number" name="importConcurrency" formControlName="concurrency" /> | |
261 | <span i18n>jobs in parallel</span> | |
262 | </div> | |
263 | ||
264 | <div *ngIf="formErrors.import.concurrency" class="form-error">{{ formErrors.import.concurrency }}</div> | |
265 | </div> | |
266 | ||
267 | <div class="form-group" formGroupName="http"> | |
268 | <my-peertube-checkbox | |
269 | inputName="importVideosHttpEnabled" formControlName="enabled" | |
270 | i18n-labelText labelText="Allow import with HTTP URL (e.g. YouTube)" | |
474542d7 | 271 | > |
2a491182 F |
272 | <ng-container ngProjectAs="description"> |
273 | <span i18n>⚠️ If enabled, we recommend to use <a class="link-orange" href="https://docs.joinpeertube.org/maintain-configuration?id=security">a HTTP proxy</a> to prevent private URL access from your PeerTube server</span> | |
274 | </ng-container> | |
275 | </my-peertube-checkbox> | |
5f46d28c C |
276 | </div> |
277 | ||
278 | <div class="form-group" formGroupName="torrent"> | |
279 | <my-peertube-checkbox | |
280 | inputName="importVideosTorrentEnabled" formControlName="enabled" | |
281 | i18n-labelText labelText="Allow import with a torrent file or a magnet URI" | |
474542d7 C |
282 | > |
283 | <ng-container ngProjectAs="description"> | |
284 | <span i18n>⚠️ We don't recommend to enable this feature if you don't trust your users</span> | |
285 | </ng-container> | |
286 | </my-peertube-checkbox> | |
5f46d28c C |
287 | </div> |
288 | ||
289 | </ng-container> | |
2a491182 F |
290 | |
291 | <ng-container formGroupName="videoChannelSynchronization"> | |
292 | <div class="form-group"> | |
293 | <my-peertube-checkbox | |
294 | inputName="importSynchronizationEnabled" formControlName="enabled" | |
295 | i18n-labelText labelText="Allow channel synchronization with channel of other platforms like YouTube (requires allowing import with HTTP URL)" | |
296 | > | |
297 | <ng-container ngProjectAs="description"> | |
298 | <span i18n [hidden]="isImportVideosHttpEnabled()"> | |
299 | ⛔ You need to allow import with HTTP URL to be able to activate this feature. | |
300 | </span> | |
301 | </ng-container> | |
302 | </my-peertube-checkbox> | |
303 | </div> | |
304 | </ng-container> | |
305 | ||
5f46d28c C |
306 | </ng-container> |
307 | ||
308 | <ng-container formGroupName="autoBlacklist"> | |
309 | <ng-container formGroupName="videos"> | |
310 | <ng-container formGroupName="ofUsers"> | |
311 | ||
312 | <div class="form-group"> | |
313 | <my-peertube-checkbox | |
314 | inputName="autoBlacklistVideosOfUsersEnabled" formControlName="enabled" | |
315 | i18n-labelText labelText="Block new videos automatically" | |
316 | > | |
317 | <ng-container ngProjectAs="description"> | |
318 | <span i18n>Unless a user is marked as trusted, their videos will stay private until a moderator reviews them.</span> | |
319 | </ng-container> | |
320 | </my-peertube-checkbox> | |
321 | </div> | |
322 | ||
323 | </ng-container> | |
324 | </ng-container> | |
325 | </ng-container> | |
326 | ||
327 | </div> | |
328 | </div> | |
329 | ||
4c8749cb C |
330 | <div class="row mt-4"> <!-- video channels grid --> |
331 | <div class="col-12 col-lg-4 col-xl-3"> | |
754b6f5f FC |
332 | <div i18n class="inner-form-title">VIDEO CHANNELS</div> |
333 | </div> | |
0bc53e20 | 334 | |
4c8749cb | 335 | <div class="col-12 col-lg-8 col-xl-9"> |
754b6f5f FC |
336 | <div class="form-group" formGroupName="videoChannels"> |
337 | <label i18n for="videoChannelsMaxPerUser">Max video channels per user</label> | |
338 | ||
339 | <div class="number-with-unit"> | |
340 | <input | |
341 | type="number" min="1" id="videoChannelsMaxPerUser" class="form-control" | |
342 | formControlName="maxPerUser" [ngClass]="{ 'input-error': formErrors['videoChannels.maxPerUser'] }" | |
343 | > | |
344 | <span i18n>{form.value['videoChannels']['maxPerUser'], plural, =1 {channel} other {channels}}</span> | |
345 | </div> | |
346 | ||
347 | <div *ngIf="formErrors.videoChannels.maxPerUser" class="form-error">{{ formErrors.videoChannels.maxPerUser }}</div> | |
348 | </div> | |
349 | </div> | |
350 | </div> | |
351 | ||
4c8749cb C |
352 | <div class="row mt-4"> <!-- search grid --> |
353 | <div class="col-12 col-lg-4 col-xl-3"> | |
5f46d28c C |
354 | <div i18n class="inner-form-title">SEARCH</div> |
355 | </div> | |
356 | ||
4c8749cb | 357 | <div class="col-12 col-lg-8 col-xl-9"> |
5f46d28c C |
358 | |
359 | <ng-container formGroupName="search"> | |
360 | <ng-container formGroupName="remoteUri"> | |
361 | ||
362 | <div class="form-group"> | |
363 | <my-peertube-checkbox | |
364 | inputName="searchRemoteUriUsers" formControlName="users" | |
365 | i18n-labelText labelText="Allow users to do remote URI/handle search" | |
366 | > | |
367 | <ng-container ngProjectAs="description"> | |
368 | <span i18n>Allow <strong>your users</strong> to look up remote videos/actors that may not be federated with your instance</span> | |
369 | </ng-container> | |
370 | </my-peertube-checkbox> | |
371 | </div> | |
372 | ||
373 | <div class="form-group"> | |
374 | <my-peertube-checkbox | |
375 | inputName="searchRemoteUriAnonymous" formControlName="anonymous" | |
376 | i18n-labelText labelText="Allow anonymous to do remote URI/handle search" | |
377 | > | |
378 | <ng-container ngProjectAs="description"> | |
379 | <span i18n>Allow <strong>anonymous users</strong> to look up remote videos/actors that may not be federated with your instance</span> | |
380 | </ng-container> | |
381 | </my-peertube-checkbox> | |
382 | </div> | |
383 | ||
384 | </ng-container> | |
385 | ||
386 | <ng-container formGroupName="searchIndex"> | |
387 | <div class="form-group"> | |
388 | <my-peertube-checkbox | |
389 | inputName="searchIndexEnabled" formControlName="enabled" | |
390 | i18n-labelText labelText="Enable global search" | |
391 | > | |
392 | <ng-container ngProjectAs="description"> | |
5b0ec7cd | 393 | <div i18n>⚠️ This functionality depends heavily on the moderation of instances followed by the search index you select.</div> |
5f46d28c | 394 | |
5b0ec7cd C |
395 | <div i18n> |
396 | You should only use moderated search indexes in production, or <a class="link-orange" href="https://framagit.org/framasoft/peertube/search-index">host your own</a>. | |
397 | </div> | |
5f46d28c C |
398 | </ng-container> |
399 | ||
400 | <ng-container ngProjectAs="extra"> | |
70e33515 | 401 | <div [ngClass]="getDisabledSearchIndexClass()"> |
5f46d28c | 402 | <label i18n for="searchIndexUrl">Search index URL</label> |
70e33515 | 403 | |
5f46d28c C |
404 | <input |
405 | type="text" id="searchIndexUrl" class="form-control" | |
406 | formControlName="url" [ngClass]="{ 'input-error': formErrors['search.searchIndex.url'] }" | |
407 | > | |
70e33515 | 408 | |
5f46d28c C |
409 | <div *ngIf="formErrors.search.searchIndex.url" class="form-error">{{ formErrors.search.searchIndex.url }}</div> |
410 | </div> | |
411 | ||
412 | <div class="mt-3"> | |
70e33515 | 413 | <my-peertube-checkbox [ngClass]="getDisabledSearchIndexClass()" |
5f46d28c C |
414 | inputName="searchIndexDisableLocalSearch" formControlName="disableLocalSearch" |
415 | i18n-labelText labelText="Disable local search in search bar" | |
416 | ></my-peertube-checkbox> | |
417 | </div> | |
418 | ||
419 | <div class="mt-3"> | |
70e33515 | 420 | <my-peertube-checkbox [ngClass]="getDisabledSearchIndexClass()" |
5f46d28c C |
421 | inputName="searchIndexIsDefaultSearch" formControlName="isDefaultSearch" |
422 | i18n-labelText labelText="Search bar uses the global search index by default" | |
423 | > | |
424 | <ng-container ngProjectAs="description"> | |
425 | <span i18n>Otherwise the local search stays used by default</span> | |
426 | </ng-container> | |
427 | </my-peertube-checkbox> | |
428 | </div> | |
429 | ||
430 | </ng-container> | |
431 | </my-peertube-checkbox> | |
432 | </div> | |
433 | ||
434 | </ng-container> | |
435 | ||
436 | </ng-container> | |
437 | ||
438 | </div> | |
439 | </div> | |
440 | ||
4c8749cb C |
441 | <div class="row mt-4"> <!-- federation grid --> |
442 | <div class="col-12 col-lg-4 col-xl-3"> | |
5f46d28c C |
443 | <div i18n class="inner-form-title">FEDERATION</div> |
444 | <div i18n class="inner-form-description"> | |
5b0ec7cd | 445 | Manage <a class="link-orange" routerLink="/admin/follows">relations</a> with other instances. |
5f46d28c C |
446 | </div> |
447 | </div> | |
448 | ||
4c8749cb | 449 | <div class="col-12 col-lg-8 col-xl-9"> |
5f46d28c C |
450 | |
451 | <ng-container formGroupName="followers"> | |
452 | <ng-container formGroupName="instance"> | |
453 | ||
454 | <div class="form-group"> | |
455 | <my-peertube-checkbox | |
456 | inputName="followersInstanceEnabled" formControlName="enabled" | |
457 | i18n-labelText labelText="Other instances can follow yours" | |
458 | ></my-peertube-checkbox> | |
459 | </div> | |
460 | ||
461 | <div class="form-group"> | |
462 | <my-peertube-checkbox | |
463 | inputName="followersInstanceManualApproval" formControlName="manualApproval" | |
464 | i18n-labelText labelText="Manually approve new instance followers" | |
465 | ></my-peertube-checkbox> | |
466 | </div> | |
467 | </ng-container> | |
468 | </ng-container> | |
469 | ||
470 | <ng-container formGroupName="followings"> | |
471 | <ng-container formGroupName="instance"> | |
472 | ||
473 | <ng-container formGroupName="autoFollowBack"> | |
474 | <div class="form-group"> | |
475 | <my-peertube-checkbox | |
476 | inputName="followingsInstanceAutoFollowBackEnabled" formControlName="enabled" | |
477 | i18n-labelText labelText="Automatically follow back instances" | |
478 | > | |
479 | <ng-container ngProjectAs="description"> | |
480 | <span i18n>⚠️ This functionality requires a lot of attention and extra moderation.</span> | |
481 | </ng-container> | |
482 | </my-peertube-checkbox> | |
483 | </div> | |
484 | </ng-container> | |
485 | ||
486 | <ng-container formGroupName="autoFollowIndex"> | |
487 | <div class="form-group"> | |
488 | <my-peertube-checkbox | |
489 | inputName="followingsInstanceAutoFollowIndexEnabled" formControlName="enabled" | |
490 | i18n-labelText labelText="Automatically follow instances of a public index" | |
491 | > | |
492 | <ng-container ngProjectAs="description"> | |
5b0ec7cd | 493 | <div i18n>⚠️ This functionality requires a lot of attention and extra moderation.</div> |
5f46d28c C |
494 | |
495 | <span i18n> | |
5b0ec7cd | 496 | See <a class="link-orange" href="https://docs.joinpeertube.org/admin-following-instances?id=automatically-follow-other-instances" rel="noopener noreferrer" target="_blank">the documentation</a> for more information about the expected URL |
5f46d28c C |
497 | </span> |
498 | </ng-container> | |
499 | ||
500 | <ng-container ngProjectAs="extra"> | |
501 | <div [ngClass]="{ 'disabled-checkbox-extra': !isAutoFollowIndexEnabled() }"> | |
502 | <label i18n for="followingsInstanceAutoFollowIndexUrl">Index URL</label> | |
503 | <input | |
504 | type="text" id="followingsInstanceAutoFollowIndexUrl" class="form-control" | |
505 | formControlName="indexUrl" [ngClass]="{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }" | |
506 | > | |
507 | <div *ngIf="formErrors.followings.instance.autoFollowIndex.indexUrl" class="form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}</div> | |
508 | </div> | |
509 | </ng-container> | |
510 | </my-peertube-checkbox> | |
511 | </div> | |
512 | ||
513 | </ng-container> | |
514 | </ng-container> | |
515 | </ng-container> | |
516 | ||
517 | </div> | |
518 | </div> | |
519 | ||
4c8749cb C |
520 | <div class="row mt-4"> <!-- administrators grid --> |
521 | <div class="col-12 col-lg-4 col-xl-3"> | |
5f46d28c C |
522 | <div i18n class="inner-form-title">ADMINISTRATORS</div> |
523 | </div> | |
524 | ||
4c8749cb | 525 | <div class="col-12 col-lg-8 col-xl-9"> |
5f46d28c C |
526 | |
527 | <div class="form-group" formGroupName="admin"> | |
528 | <label i18n for="adminEmail">Admin email</label> | |
70e33515 | 529 | |
5f46d28c C |
530 | <input |
531 | type="text" id="adminEmail" class="form-control" | |
532 | formControlName="email" [ngClass]="{ 'input-error': formErrors['admin.email'] }" | |
533 | > | |
70e33515 | 534 | |
5f46d28c C |
535 | <div *ngIf="formErrors.admin.email" class="form-error">{{ formErrors.admin.email }}</div> |
536 | </div> | |
537 | ||
538 | <div class="form-group" formGroupName="contactForm"> | |
539 | <my-peertube-checkbox | |
540 | inputName="enableContactForm" formControlName="enabled" | |
541 | i18n-labelText labelText="Enable contact form" | |
542 | ></my-peertube-checkbox> | |
543 | </div> | |
544 | ||
545 | </div> | |
546 | </div> | |
547 | ||
4c8749cb C |
548 | <div class="row mt-4"> <!-- Twitter grid --> |
549 | <div class="col-12 col-lg-4 col-xl-3"> | |
5f46d28c C |
550 | <div i18n class="inner-form-title">TWITTER</div> |
551 | <div i18n class="inner-form-description"> | |
552 | Provide the Twitter account representing your instance to improve link previews. | |
553 | If you don't have a Twitter account, just leave the default value. | |
554 | </div> | |
555 | </div> | |
556 | ||
4c8749cb | 557 | <div class="col-12 col-lg-8 col-xl-9"> |
5f46d28c C |
558 | |
559 | <ng-container formGroupName="services"> | |
560 | <ng-container formGroupName="twitter"> | |
561 | ||
562 | <div class="form-group"> | |
1f256e7d | 563 | <label for="servicesTwitterUsername" i18n>Your Twitter username</label> |
5f46d28c C |
564 | |
565 | <input | |
566 | type="text" id="servicesTwitterUsername" class="form-control" | |
567 | formControlName="username" [ngClass]="{ 'input-error': formErrors['services.twitter.username'] }" | |
568 | > | |
70e33515 | 569 | |
5f46d28c C |
570 | <div *ngIf="formErrors.services.twitter.username" class="form-error">{{ formErrors.services.twitter.username }}</div> |
571 | </div> | |
572 | ||
573 | <div class="form-group"> | |
574 | <my-peertube-checkbox inputName="servicesTwitterWhitelisted" formControlName="whitelisted"> | |
575 | <ng-template ptTemplate="label"> | |
576 | <ng-container i18n>Instance allowed by Twitter</ng-container> | |
577 | </ng-template> | |
578 | ||
579 | <ng-template ptTemplate="help"> | |
580 | <ng-container i18n> | |
581 | If your instance is explicitly allowed by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.<br /> | |
582 | If the instance is not, we use an image link card that will redirect to your PeerTube instance.<br /><br /> | |
a1eda903 | 583 | Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/w/blabla) on |
5b0ec7cd | 584 | <a class="link-orange" target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'>https://cards-dev.twitter.com/validator</a> |
5f46d28c C |
585 | to see if you instance is allowed. |
586 | </ng-container> | |
587 | </ng-template> | |
588 | </my-peertube-checkbox> | |
589 | </div> | |
590 | ||
591 | </ng-container> | |
592 | </ng-container> | |
593 | ||
594 | </div> | |
595 | </div> | |
596 | </ng-container> |