]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+videos/+video-edit/video-add.component.html
5690ac37f45bb916ecfa4d7b25595a5b4feda744
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add.component.html
1 <div class="margin-content">
2 <div class="alert alert-warning" *ngIf="isRootUser()" i18n>
3 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.
4 <br />
5 Instead, <a routerLink="/admin/users">create a dedicated account</a> to upload your videos.
6 </div>
7
8 <my-user-quota *ngIf="!isInSecondStep()" [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-quota>
9
10 <div class="title-page title-page-single" *ngIf="isInSecondStep()">
11 <ng-container *ngIf="secondStepType === 'import-url' || secondStepType === 'import-torrent'" i18n>Import {{ videoName }}</ng-container>
12 <ng-container *ngIf="secondStepType === 'upload'" i18n>Upload {{ videoName }}</ng-container>
13 </div>
14
15 <div ngbNav #nav="ngbNav" class="nav-tabs video-add-nav" [ngClass]="{ 'hide-nav': secondStepType !== undefined }">
16 <ng-container ngbNavItem>
17 <a ngbNavLink>
18 <span i18n>Upload a file</span>
19 </a>
20
21 <ng-template ngbNavContent>
22 <my-video-upload #videoUpload (firstStepDone)="onFirstStepDone('upload', $event)" (firstStepError)="onError()"></my-video-upload>
23 </ng-template>
24 </ng-container>
25
26 <ng-container ngbNavItem *ngIf="isVideoImportHttpEnabled()">
27 <a ngbNavLink>
28 <span i18n>Import with URL</span>
29 </a>
30
31 <ng-template ngbNavContent>
32 <my-video-import-url #videoImportUrl (firstStepDone)="onFirstStepDone('import-url', $event)" (firstStepError)="onError()"></my-video-import-url>
33 </ng-template>
34 </ng-container>
35
36 <ng-container ngbNavItem *ngIf="isVideoImportTorrentEnabled()">
37 <a ngbNavLink>
38 <span i18n>Import with torrent</span>
39 </a>
40
41 <ng-template ngbNavContent>
42 <my-video-import-torrent #videoImportTorrent (firstStepDone)="onFirstStepDone('import-torrent', $event)" (firstStepError)="onError()"></my-video-import-torrent>
43 </ng-template>
44 </ng-container>
45 </div>
46
47 <div [ngbNavOutlet]="nav"></div>
48 </div>