<div *ngIf="formErrors.instance.terms" class="form-error">{{ formErrors.instance.terms }}</div>
</div>
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="instanceIsNSFW" formControlName="isNSFW"
+ i18n-labelText labelText="Dedicated to sensitive or NSFW content"
+ i18n-helpHtml helpHtml="Enabling it will allow other administrators to know that you are mainly federating sensitive content.<br /><br />
+ Moreover, the NSFW checkbox on video upload will be automatically checked by default."
+ ></my-peertube-checkbox>
+ </div>
+
<div class="form-group">
<label i18n for="instanceDefaultClientRoute">Default client route</label>
<div class="peertube-select-container">
</div>
</ng-container>
+
+ <div i18n class="inner-form-title">Theme</div>
+
+ <ng-container formGroupName="theme">
+ <div class="form-group">
+ <label i18n for="themeDefault">Global theme</label>
+
+ <div class="peertube-select-container">
+ <select formControlName="default" id="themeDefault">
+ <option i18n value="default">default</option>
+
+ <option *ngFor="let theme of availableThemes" [value]="theme">{{ theme }}</option>
+ </select>
+ </div>
+ </div>
+ </ng-container>
+
+
<div i18n class="inner-form-title">Signup</div>
<ng-container formGroupName="signup">
</div>
</ng-container>
+
<div i18n class="inner-form-title">Users</div>
<ng-container formGroupName="user">
</div>
</ng-container>
+
<div i18n class="inner-form-title">Import</div>
<ng-container formGroupName="import">
</ng-container>
</ng-container>
+
+ <div i18n class="inner-form-title">Auto-blacklist</div>
+
+ <ng-container formGroupName="autoBlacklist">
+ <ng-container formGroupName="videos">
+ <ng-container formGroupName="ofUsers">
+
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="autoBlacklistVideosOfUsersEnabled" formControlName="enabled"
+ i18n-labelText labelText="New videos of users automatically blacklisted enabled"
+ ></my-peertube-checkbox>
+ </div>
+
+ </ng-container>
+ </ng-container>
+ </ng-container>
+
+
+ <div i18n class="inner-form-title">Instance followers</div>
+
+ <ng-container formGroupName="followers">
+ <ng-container formGroupName="instance">
+
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="followersInstanceEnabled" formControlName="enabled"
+ i18n-labelText labelText="Other instances can follow your instance"
+ ></my-peertube-checkbox>
+ </div>
+
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="followersInstanceManualApproval" formControlName="manualApproval"
+ i18n-labelText labelText="Manually approve new instance follower"
+ ></my-peertube-checkbox>
+ </div>
+ </ng-container>
+ </ng-container>
+
+ <div i18n class="inner-form-title">Instance followings</div>
+
+ <ng-container formGroupName="followings">
+ <ng-container formGroupName="instance">
+
+ <ng-container formGroupName="autoFollowBack">
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="followingsInstanceAutoFollowBackEnabled" formControlName="enabled"
+ i18n-labelText labelText="Automatically follow other instances that follow you"
+ ></my-peertube-checkbox>
+ </div>
+ </ng-container>
+
+ <ng-container formGroupName="autoFollowIndex">
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="followingsInstanceAutoFollowIndexEnabled" formControlName="enabled"
+ i18n-labelText labelText="Automatically follow instance of the public index (below)"
+ ></my-peertube-checkbox>
+ </div>
+
+ <div class="form-group">
+ <label i18n for="followingsInstanceAutoFollowIndexUrl">Index URL</label>
+ <input
+ type="text" id="followingsInstanceAutoFollowIndexUrl"
+ formControlName="indexUrl" [ngClass]="{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }"
+ >
+ <div *ngIf="formErrors.followings.instance.autoFollowIndex.indexUrl" class="form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}</div>
+ </div>
+
+ </ng-container>
+ </ng-container>
+ </ng-container>
+
+
<div i18n class="inner-form-title">Administrator</div>
<div class="form-group" formGroupName="admin">
></my-peertube-checkbox>
</div>
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="transcodingAllowAudioFiles" formControlName="allowAudioFiles"
+ i18n-labelText labelText="Allow audio files upload"
+ i18n-helpHtml helpHtml="Allow your users to upload audio files that will be merged with the preview file on upload"
+ ></my-peertube-checkbox>
+ </div>
+
<div class="form-group">
<label i18n for="transcodingThreads">Transcoding threads</label>
<div class="peertube-select-container">
<ng-container formGroupName="resolutions">
<div class="form-group" *ngFor="let resolution of resolutions">
<my-peertube-checkbox
- [inputName]="getResolutionKey(resolution)" [formControlName]="resolution"
- i18n-labelText labelText="Resolution {{resolution}} enabled"
+ [inputName]="getResolutionKey(resolution.id)" [formControlName]="resolution.id"
+ i18n-labelText labelText="Resolution {{resolution.label}} enabled"
></my-peertube-checkbox>
</div>
</ng-container>
helpType="custom"
i18n-customHtml
customHtml="
- Write directly CSS code. Example:<br />
+ Write directly CSS code. Example:<br /><br />
<pre>
- body {{ '{' }}
- background-color: red;
- {{ '}' }}
+ #custom-css {{ '{' }}
+ color: red;
+ {{ '}' }}
</pre>
- Prepend with <em>#custom-css</em> to override styles. Example:
+ Prepend with <em>#custom-css</em> to override styles. Example:<br /><br />
<pre>
- #custom-css .logged-in-email {{ '{' }}
- color: red;
- {{ '}' }}
+ #custom-css .logged-in-email {{ '{' }}
+ color: red;
+ {{ '}' }}
</pre>
"
></my-help>