aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-06-10 21:09:31 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-06-10 21:09:31 +0200
commitd840487fed32b4604b02030c0d7464afa925904f (patch)
treea44be2f5dfd4736bdc4743fce0a691e45523e90e /client/src/app/+admin
parent1bab226f5c2e678039ed40f87ab3fe05f3ebd0f4 (diff)
downloadPeerTube-d840487fed32b4604b02030c0d7464afa925904f.tar.gz
PeerTube-d840487fed32b4604b02030c0d7464afa925904f.tar.zst
PeerTube-d840487fed32b4604b02030c0d7464afa925904f.zip
smaller miniature average size in fluid grid, updated admin instructions for global search
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html69
1 files changed, 38 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 b8682ffe0..981b6685f 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
@@ -342,7 +342,7 @@
342 <div class="form-group"> 342 <div class="form-group">
343 <my-peertube-checkbox 343 <my-peertube-checkbox
344 inputName="signupEnabled" formControlName="enabled" 344 inputName="signupEnabled" formControlName="enabled"
345 i18n-labelText labelText="Signup enabled" 345 i18n-labelText labelText="Enable Signup"
346 > 346 >
347 <ng-container ngProjectAs="description"> 347 <ng-container ngProjectAs="description">
348 <span i18n>⚠️ This functionality requires a lot of attention and extra moderation.</span> 348 <span i18n>⚠️ This functionality requires a lot of attention and extra moderation.</span>
@@ -461,7 +461,7 @@
461 i18n-labelText labelText="Allow users to do remote URI/handle search" 461 i18n-labelText labelText="Allow users to do remote URI/handle search"
462 > 462 >
463 <ng-container ngProjectAs="description"> 463 <ng-container ngProjectAs="description">
464 <span i18n>Add ability for <strong>your users</strong> to fetch remote videos/actors by their URI, that may not be federated with your instance</span> 464 <span i18n>Allow <strong>your users</strong> to look up remote videos/actors by their URI, that may not be federated with your instance</span>
465 </ng-container> 465 </ng-container>
466 </my-peertube-checkbox> 466 </my-peertube-checkbox>
467 </div> 467 </div>
@@ -472,7 +472,7 @@
472 i18n-labelText labelText="Allow anonymous to do remote URI/handle search" 472 i18n-labelText labelText="Allow anonymous to do remote URI/handle search"
473 > 473 >
474 <ng-container ngProjectAs="description"> 474 <ng-container ngProjectAs="description">
475 <span i18n>Add ability for <strong>anonymous</strong> to fetch remote videos/actors by their URI, that may not be federated with your instance</span> 475 <span i18n>Allow <strong>anonymous users</strong> to look up remote videos/actors by their URI, that may not be federated with your instance</span>
476 </ng-container> 476 </ng-container>
477 </my-peertube-checkbox> 477 </my-peertube-checkbox>
478 </div> 478 </div>
@@ -483,39 +483,46 @@
483 <div class="form-group"> 483 <div class="form-group">
484 <my-peertube-checkbox 484 <my-peertube-checkbox
485 inputName="searchIndexEnabled" formControlName="enabled" 485 inputName="searchIndexEnabled" formControlName="enabled"
486 i18n-labelText labelText="Enable search index" 486 i18n-labelText labelText="Enable global search"
487 > 487 >
488 <ng-container ngProjectAs="description">
489 <p i18n>⚠️ This functionality depends heavily on the moderation of instances followed by the search index you select.</p>
488 490
489 <ng-container ngProjectAs="extra"> 491 <span i18n>
490 <div [ngClass]="{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }"> 492 You should only use search indexes you trust, or <a href="https://framagit.org/framasoft/peertube/search-index">host your own</a>.
491 <label i18n for="searchIndexUrl">Search index URL</label> 493 </span>
492 <input 494 </ng-container>
493 type="text" id="searchIndexUrl" class="form-control"
494 formControlName="url" [ngClass]="{ 'input-error': formErrors['search.searchIndex.url'] }"
495 >
496 <div *ngIf="formErrors.search.searchIndex.url" class="form-error">{{ formErrors.search.searchIndex.url }}</div>
497 </div>
498 495
499 <div class="mt-3"> 496 <ng-container ngProjectAs="extra">
500 <my-peertube-checkbox [ngClass]="{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }" 497 <div [ngClass]="{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }">
501 inputName="searchIndexDisableLocalSearch" formControlName="disableLocalSearch" 498 <label i18n for="searchIndexUrl">Search index URL</label>
502 i18n-labelText labelText="Disable local search" 499 <input
503 ></my-peertube-checkbox> 500 type="text" id="searchIndexUrl" class="form-control"
504 </div> 501 formControlName="url" [ngClass]="{ 'input-error': formErrors['search.searchIndex.url'] }"
502 >
503 <div *ngIf="formErrors.search.searchIndex.url" class="form-error">{{ formErrors.search.searchIndex.url }}</div>
504 </div>
505 505
506 <div class="mt-3"> 506 <div class="mt-3">
507 <my-peertube-checkbox [ngClass]="{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }" 507 <my-peertube-checkbox [ngClass]="{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }"
508 inputName="searchIndexIsDefaultSearch" formControlName="isDefaultSearch" 508 inputName="searchIndexDisableLocalSearch" formControlName="disableLocalSearch"
509 i18n-labelText labelText="Set search index as default" 509 i18n-labelText labelText="Disable local search in search bar"
510 > 510 ></my-peertube-checkbox>
511 <ng-container ngProjectAs="description"> 511 </div>
512 <span i18n>The local search is used by default</span>
513 </ng-container>
514 </my-peertube-checkbox>
515 </div>
516 512
517 </ng-container> 513 <div class="mt-3">
518 </my-peertube-checkbox> 514 <my-peertube-checkbox [ngClass]="{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }"
515 inputName="searchIndexIsDefaultSearch" formControlName="isDefaultSearch"
516 i18n-labelText labelText="Search bar uses the global search index by default"
517 >
518 <ng-container ngProjectAs="description">
519 <span i18n>Otherwise the local search stays used by default</span>
520 </ng-container>
521 </my-peertube-checkbox>
522 </div>
523
524 </ng-container>
525 </my-peertube-checkbox>
519 </div> 526 </div>
520 527
521 </ng-container> 528 </ng-container>