</ng-container>
</div>
+ <ng-container formGroupName="client">
+
+ <ng-container formGroupName="videos">
+ <ng-container formGroupName="miniature">
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="clientVideosMiniaturePreferAuthorDisplayName" formControlName="preferAuthorDisplayName"
+ i18n-labelText labelText="Prefer author display name in video miniature"
+ ></my-peertube-checkbox>
+ </div>
+ </ng-container>
+ </ng-container>
+
+ <ng-container formGroupName="menu">
+ <ng-container formGroupName="login">
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="clientMenuLoginRedirectOnSingleExternalAuth" formControlName="redirectOnSingleExternalAuth"
+ i18n-labelText labelText="Redirect users on single external auth when users click on the login button in menu"
+ >
+ <ng-container ngProjectAs="description">
+ <span *ngIf="countExternalAuth() === 0" i18n>⚠️ You don't have any external auth plugin enabled.</span>
+ <span *ngIf="countExternalAuth() > 1" i18n>⚠️ You have multiple external auth plugins enabled.</span>
+ </ng-container>
+ </my-peertube-checkbox>
+ </div>
+ </ng-container>
+ </ng-container>
+ </ng-container>
+
</div>
</div>
<small i18n *ngIf="hasUnlimitedSignup()" class="text-muted">Signup won't be limited to a fixed number of users.</small>
</div>
+
+ <div [ngClass]="getDisabledSignupClass()" class="mt-3">
+ <label i18n for="signupMinimumAge">Minimum required age to create an account</label>
+
+ <div class="number-with-unit">
+ <input
+ type="number" min="1" id="signupMinimumAge" class="form-control"
+ formControlName="minimumAge" [ngClass]="{ 'input-error': formErrors['signup.minimumAge'] }"
+ >
+ <span i18n>{form.value['signup']['minimumAge'], plural, =1 {year old} other {years old}}</span>
+ </div>
+
+ <div *ngIf="formErrors.signup.minimumAge" class="form-error">{{ formErrors.signup.minimumAge }}</div>
+ </div>
</ng-container>
</my-peertube-checkbox>
</div>
</div>
</div>
+ <div class="form-row mt-4"> <!-- video channels grid -->
+ <div class="form-group col-12 col-lg-4 col-xl-3">
+ <div i18n class="inner-form-title">VIDEO CHANNELS</div>
+ </div>
+
+ <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
+ <div class="form-group" formGroupName="videoChannels">
+ <label i18n for="videoChannelsMaxPerUser">Max video channels per user</label>
+
+ <div class="number-with-unit">
+ <input
+ type="number" min="1" id="videoChannelsMaxPerUser" class="form-control"
+ formControlName="maxPerUser" [ngClass]="{ 'input-error': formErrors['videoChannels.maxPerUser'] }"
+ >
+ <span i18n>{form.value['videoChannels']['maxPerUser'], plural, =1 {channel} other {channels}}</span>
+ </div>
+
+ <div *ngIf="formErrors.videoChannels.maxPerUser" class="form-error">{{ formErrors.videoChannels.maxPerUser }}</div>
+ </div>
+ </div>
+ </div>
+
<div class="form-row mt-4"> <!-- search grid -->
<div class="form-group col-12 col-lg-4 col-xl-3">
<div i18n class="inner-form-title">SEARCH</div>
<p i18n>⚠️ This functionality requires a lot of attention and extra moderation.</p>
<span i18n>
- See <a href="https://docs.joinpeertube.org/admin-following-instances?id=automatically-follow-other-instances" rel="noopener noreferer" target="_blank">the documentation</a> for more information about the expected URL
+ See <a 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
</span>
</ng-container>
<ng-container formGroupName="twitter">
<div class="form-group">
- <label i18n for="signupLimit">Your Twitter username</label>
+ <label for="servicesTwitterUsername" i18n>Your Twitter username</label>
<input
type="text" id="servicesTwitterUsername" class="form-control"
<ng-container i18n>
If your instance is explicitly allowed by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.<br />
If the instance is not, we use an image link card that will redirect to your PeerTube instance.<br /><br />
- Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on
+ Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/w/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 allowed.
</ng-container>