]>
Commit | Line | Data |
---|---|---|
4e1592da MK |
1 | <ng-template #AlertButtons> |
2 | <a i18n routerLink="/about/instance" *ngIf="!isContactFormEnabled" class="about-link">Read instance rules for help</a> | |
3 | <a i18n routerLink="/about/contact" *ngIf="isContactFormEnabled" class="contact-link">Contact us</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> | |
dfe3f7b7 | 10 | </div> |
dfe3f7b7 | 11 | |
4e1592da MK |
12 | <div class="upload-image"> |
13 | <img src="/client/assets/images/mascot/defeated.svg" alt="defeated mascot"> | |
14 | </div> | |
15 | </ng-container> | |
16 | ||
17 | <ng-container *ngIf="!user.isUploadDisabled()"> | |
e0b1231b | 18 | <div *ngIf="user.isAutoBlocked(serverConfig)" class="upload-message auto-blocked alert alert-warning"> |
4e1592da | 19 | <div>{{ uploadMessages.autoBlock }}</div> |
52a354ab | 20 | <ng-template [ngTemplateOutlet]="AlertButtons" *ngIf="!hasNoQuotaLeft && !hasNoQuotaLeftDaily"></ng-template> |
4e1592da MK |
21 | </div> |
22 | ||
52a354ab | 23 | <div *ngIf="hasNoQuotaLeftDaily" class="upload-message quota-daily-left alert alert-warning"> |
4e1592da | 24 | <div>{{ uploadMessages.quotaLeftDaily }}</div> |
52a354ab | 25 | <ng-template [ngTemplateOutlet]="AlertButtons" *ngIf="!hasNoQuotaLeft"></ng-template> |
4e1592da MK |
26 | </div> |
27 | ||
52a354ab | 28 | <div *ngIf="hasNoQuotaLeft" class="upload-message quota-left alert alert-warning"> |
4e1592da MK |
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> | |
cd3d847d C |
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. |
35 | <br /> | |
36 | Instead, <a routerLink="/admin/users">create a dedicated account</a> to upload your videos. | |
37 | </div> | |
4e1592da | 38 | </ng-container> |
cd3d847d | 39 | |
4e1592da | 40 | <div *ngIf="!user.isUploadDisabled()" class="margin-content"> |
b5b68755 | 41 | <my-user-quota *ngIf="!isInSecondStep() || secondStepType === 'go-live'" [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-quota> |
2e7f2627 | 42 | |
c4a05171 | 43 | <div class="title-page" *ngIf="isInSecondStep()"> |
541006e3 | 44 | <ng-container *ngIf="secondStepType === 'import-url' || secondStepType === 'import-torrent'" i18n>Import {{ videoName }}</ng-container> |
fbad87b0 | 45 | <ng-container *ngIf="secondStepType === 'upload'" i18n>Upload {{ videoName }}</ng-container> |
27e1a06c | 46 | </div> |
897ec54d | 47 | |
7dca45f9 MK |
48 | <my-channels-setup-message></my-channels-setup-message> |
49 | ||
3914a50b C |
50 | <div ngbNav #nav="ngbNav" class="nav-tabs video-add-nav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" [ngClass]="{ 'hide-nav': !!secondStepType }"> |
51 | <ng-container ngbNavItem="upload"> | |
45c6bcf3 C |
52 | <a ngbNavLink> |
53 | <span i18n>Upload a file</span> | |
54 | </a> | |
897ec54d | 55 | |
45c6bcf3 | 56 | <ng-template ngbNavContent> |
7373507f | 57 | <my-video-upload #videoUpload (firstStepDone)="onFirstStepDone('upload', $event)" (firstStepError)="onError()"></my-video-upload> |
b04eabb2 | 58 | </ng-template> |
45c6bcf3 | 59 | </ng-container> |
897ec54d | 60 | |
3914a50b | 61 | <ng-container ngbNavItem="import-url" *ngIf="isVideoImportHttpEnabled()"> |
45c6bcf3 C |
62 | <a ngbNavLink> |
63 | <span i18n>Import with URL</span> | |
64 | </a> | |
65 | ||
66 | <ng-template ngbNavContent> | |
7373507f | 67 | <my-video-import-url #videoImportUrl (firstStepDone)="onFirstStepDone('import-url', $event)" (firstStepError)="onError()"></my-video-import-url> |
b04eabb2 | 68 | </ng-template> |
45c6bcf3 C |
69 | </ng-container> |
70 | ||
3914a50b | 71 | <ng-container ngbNavItem="import-torrent" *ngIf="isVideoImportTorrentEnabled()"> |
45c6bcf3 C |
72 | <a ngbNavLink> |
73 | <span i18n>Import with torrent</span> | |
74 | </a> | |
ce33919c | 75 | |
45c6bcf3 | 76 | <ng-template ngbNavContent> |
7373507f | 77 | <my-video-import-torrent #videoImportTorrent (firstStepDone)="onFirstStepDone('import-torrent', $event)" (firstStepError)="onError()"></my-video-import-torrent> |
b04eabb2 | 78 | </ng-template> |
45c6bcf3 | 79 | </ng-container> |
c6c0fa6c | 80 | |
3914a50b | 81 | <ng-container ngbNavItem="go-live" *ngIf="isVideoLiveEnabled()"> |
c6c0fa6c C |
82 | <a ngbNavLink> |
83 | <span i18n>Go live</span> | |
84 | </a> | |
85 | ||
86 | <ng-template ngbNavContent> | |
87 | <my-video-go-live #videoGoLive (firstStepDone)="onFirstStepDone('go-live', $event)" (firstStepError)="onError()"></my-video-go-live> | |
88 | </ng-template> | |
89 | </ng-container> | |
45c6bcf3 C |
90 | </div> |
91 | ||
92 | <div [ngbNavOutlet]="nav"></div> | |
c6c0fa6c | 93 | </div> |