ActivityPub-federated video streaming platform using P2P directly in your web browser
Add help concerning NSFW videos in upload
Chocobozzz41f657c57047
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.html b/client/src/app/account/account-settings/account-details/account-details.component.htmlindex 9dcc66a753..0e8598e9e8 100644--- a/client/src/app/account/account-settings/account-details/account-details.component.html+++ b/client/src/app/account/account-settings/account-details/account-details.component.html@@ -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">diff --git a/client/src/app/shared/misc/help.component.html b/client/src/app/shared/misc/help.component.htmlindex 2019a49885..3da5701a0e 100644--- a/client/src/app/shared/misc/help.component.html+++ b/client/src/app/shared/misc/help.component.html@@ -14,7 +14,8 @@<spanclass="help-tooltip-button"+ title="Get help"[popover]="tooltipTemplate"- placement="right"+ [placement]="tooltipPlacement"[outsideClick]="true"></span>diff --git a/client/src/app/shared/misc/help.component.ts b/client/src/app/shared/misc/help.component.tsindex 9defd9aa4c..0373a63de7 100644--- a/client/src/app/shared/misc/help.component.ts+++ b/client/src/app/shared/misc/help.component.ts@@ -12,6 +12,7 @@ export class HelpComponent implements OnInit, OnChanges {@Input() postHtml = ''@Input() customHtml = ''@Input() helpType: 'custom' | 'markdownText' | 'markdownEnhanced' = 'custom'+ @Input() tooltipPlacement = 'right'mainHtml = ''diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.html b/client/src/app/videos/+video-edit/shared/video-edit.component.htmlindex 6d0a1600a6..9cd3454a08 100644--- a/client/src/app/videos/+video-edit/shared/video-edit.component.html+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.html@@ -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">diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.scss b/client/src/app/videos/+video-edit/shared/video-edit.component.scssindex 1317f74264..cf64ff589c 100644--- a/client/src/app/videos/+video-edit/shared/video-edit.component.scss+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.scss@@ -9,6 +9,10 @@@include peertube-select-disabled-container(auto);}+.form-group-checkbox {+ my-help { margin-left: 5px }+}+.video-edit {height: 100%;diff --git a/server/tests/api/index-fast.ts b/server/tests/api/index-fast.tsindex aa063b97a9..2454ec2f9d 100644--- a/server/tests/api/index-fast.ts+++ b/server/tests/api/index-fast.ts@@ -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'