Add help concerning NSFW videos in upload

This commit is contained in:
Chocobozzz 2018-04-19 11:47:02 +02:00
parent 0883b3245b
commit 41f657c570
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
6 changed files with 9 additions and 4 deletions

View File

@ -10,9 +10,6 @@
<option value="display">Display</option>
</select>
</div>
<div *ngIf="formErrors.nsfwPolicy" class="form-error">
{{ formErrors.nsfwPolicy }}
</div>
</div>
<div class="form-group">

View File

@ -14,7 +14,8 @@
<span
class="help-tooltip-button"
title="Get help"
[popover]="tooltipTemplate"
placement="right"
[placement]="tooltipPlacement"
[outsideClick]="true"
></span>

View File

@ -12,6 +12,7 @@ export class HelpComponent implements OnInit, OnChanges {
@Input() postHtml = ''
@Input() customHtml = ''
@Input() helpType: 'custom' | 'markdownText' | 'markdownEnhanced' = 'custom'
@Input() tooltipPlacement = 'right'
mainHtml = ''

View File

@ -100,6 +100,7 @@
<input type="checkbox" id="nsfw" formControlName="nsfw" />
<label for="nsfw"></label>
<label for="nsfw">This video contains mature or explicit content</label>
<my-help tooltipPlacement="top" helpType="custom" customHtml="Some instances do not list NSFW videos by default."></my-help>
</div>
<div class="form-group form-group-checkbox">

View File

@ -9,6 +9,10 @@
@include peertube-select-disabled-container(auto);
}
.form-group-checkbox {
my-help { margin-left: 5px }
}
.video-edit {
height: 100%;

View File

@ -7,6 +7,7 @@ import './videos/video-abuse'
import './videos/video-blacklist'
import './videos/video-blacklist-management'
import './videos/video-description'
import './videos/video-nsfw'
import './videos/video-privacy'
import './videos/services'
import './server/email'