diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add.component.html')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add.component.html | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add.component.html b/client/src/app/+videos/+video-edit/video-add.component.html index ac75d9ff8..b056c6e7a 100644 --- a/client/src/app/+videos/+video-edit/video-add.component.html +++ b/client/src/app/+videos/+video-edit/video-add.component.html | |||
@@ -1,18 +1,43 @@ | |||
1 | <div *ngIf="user.isUploadDisabled()" class="no-upload"> | 1 | <ng-template #AlertButtons> |
2 | <div class="alert alert-warning"> | 2 | <a i18n routerLink="/about/instance" *ngIf="!isContactFormEnabled" class="about-link">Read instance rules for help</a> |
3 | <div i18n>Sorry, the upload feature is disabled for your account. If you want to add videos, an admin must unlock your quota.</div> | 3 | <a i18n routerLink="/about/contact" *ngIf="isContactFormEnabled" class="contact-link">Contact us</a> |
4 | <a i18n routerLink="/about/instance" class="about-link">Read instance rules for help</a> | 4 | </ng-template> |
5 | |||
6 | <ng-container *ngIf="user.isUploadDisabled()"> | ||
7 | <div class="upload-message upload-disabled alert alert-warning"> | ||
8 | <div>{{ uploadMessages.noQuota }}</div> | ||
9 | <ng-template [ngTemplateOutlet]="AlertButtons"></ng-template> | ||
5 | </div> | 10 | </div> |
6 | <img src="/client/assets/images/mascot/defeated.svg" alt="defeated mascot"> | ||
7 | </div> | ||
8 | 11 | ||
9 | <div *ngIf="!user.isUploadDisabled()" class="margin-content"> | 12 | <div class="upload-image"> |
10 | <div class="alert alert-warning" *ngIf="isRootUser()" i18n> | 13 | <img src="/client/assets/images/mascot/defeated.svg" alt="defeated mascot"> |
14 | </div> | ||
15 | </ng-container> | ||
16 | |||
17 | <ng-container *ngIf="!user.isUploadDisabled()"> | ||
18 | <div *ngIf="user.isAutoBlocked()" class="upload-message auto-blocked alert alert-warning"> | ||
19 | <div>{{ uploadMessages.autoBlock }}</div> | ||
20 | <ng-template [ngTemplateOutlet]="AlertButtons" *ngIf="!user.hasNoQuotaLeft() && !user.hasNoQuotaLeftDaily()"></ng-template> | ||
21 | </div> | ||
22 | |||
23 | <div *ngIf="user.hasNoQuotaLeft()" class="upload-message quota-daily-left alert alert-warning"> | ||
24 | <div>{{ uploadMessages.quotaLeftDaily }}</div> | ||
25 | <ng-template [ngTemplateOutlet]="AlertButtons" *ngIf="!user.hasNoQuotaLeft()"></ng-template> | ||
26 | </div> | ||
27 | |||
28 | <div *ngIf="user.hasNoQuotaLeft()" class="upload-message quota-left alert alert-warning"> | ||
29 | <div>{{ uploadMessages.quotaLeft }}</div> | ||
30 | <ng-template [ngTemplateOutlet]="AlertButtons"></ng-template> | ||
31 | </div> | ||
32 | |||
33 | <div *ngIf="isRootUser()" class="upload-message root-user alert alert-warning" i18n> | ||
11 | We recommend you to not use the <strong>root</strong> user to publish your videos, since it's the super-admin account of your instance. | 34 | We recommend you to not use the <strong>root</strong> user to publish your videos, since it's the super-admin account of your instance. |
12 | <br /> | 35 | <br /> |
13 | Instead, <a routerLink="/admin/users">create a dedicated account</a> to upload your videos. | 36 | Instead, <a routerLink="/admin/users">create a dedicated account</a> to upload your videos. |
14 | </div> | 37 | </div> |
38 | </ng-container> | ||
15 | 39 | ||
40 | <div *ngIf="!user.isUploadDisabled()" class="margin-content"> | ||
16 | <my-user-quota *ngIf="!isInSecondStep() || secondStepType === 'go-live'" [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-quota> | 41 | <my-user-quota *ngIf="!isInSecondStep() || secondStepType === 'go-live'" [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-quota> |
17 | 42 | ||
18 | <div class="title-page title-page-single" *ngIf="isInSecondStep()"> | 43 | <div class="title-page title-page-single" *ngIf="isInSecondStep()"> |