]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-edit/video-add.component.html
Move to sass module
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add.component.html
CommitLineData
dfe3f7b7
K
1<div *ngIf="user.isUploadDisabled()" class="no-upload">
2 <div class="alert alert-warning">
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>
4 <a i18n routerLink="/about/instance" class="about-link">Read instance rules for help</a>
5 </div>
6 <img src="/client/assets/images/mascot/defeated.svg" alt="defeated mascot">
7</div>
8
9<div *ngIf="!user.isUploadDisabled()" class="margin-content">
cd3d847d
C
10 <div class="alert alert-warning" *ngIf="isRootUser()" 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.
12 <br />
13 Instead, <a routerLink="/admin/users">create a dedicated account</a> to upload your videos.
14 </div>
15
b5b68755 16 <my-user-quota *ngIf="!isInSecondStep() || secondStepType === 'go-live'" [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-quota>
2e7f2627 17
cd3d847d 18 <div class="title-page title-page-single" *ngIf="isInSecondStep()">
541006e3 19 <ng-container *ngIf="secondStepType === 'import-url' || secondStepType === 'import-torrent'" i18n>Import {{ videoName }}</ng-container>
fbad87b0 20 <ng-container *ngIf="secondStepType === 'upload'" i18n>Upload {{ videoName }}</ng-container>
27e1a06c 21 </div>
897ec54d 22
3914a50b
C
23 <div ngbNav #nav="ngbNav" class="nav-tabs video-add-nav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" [ngClass]="{ 'hide-nav': !!secondStepType }">
24 <ng-container ngbNavItem="upload">
45c6bcf3
C
25 <a ngbNavLink>
26 <span i18n>Upload a file</span>
27 </a>
897ec54d 28
45c6bcf3 29 <ng-template ngbNavContent>
7373507f 30 <my-video-upload #videoUpload (firstStepDone)="onFirstStepDone('upload', $event)" (firstStepError)="onError()"></my-video-upload>
b04eabb2 31 </ng-template>
45c6bcf3 32 </ng-container>
897ec54d 33
3914a50b 34 <ng-container ngbNavItem="import-url" *ngIf="isVideoImportHttpEnabled()">
45c6bcf3
C
35 <a ngbNavLink>
36 <span i18n>Import with URL</span>
37 </a>
38
39 <ng-template ngbNavContent>
7373507f 40 <my-video-import-url #videoImportUrl (firstStepDone)="onFirstStepDone('import-url', $event)" (firstStepError)="onError()"></my-video-import-url>
b04eabb2 41 </ng-template>
45c6bcf3
C
42 </ng-container>
43
3914a50b 44 <ng-container ngbNavItem="import-torrent" *ngIf="isVideoImportTorrentEnabled()">
45c6bcf3
C
45 <a ngbNavLink>
46 <span i18n>Import with torrent</span>
47 </a>
ce33919c 48
45c6bcf3 49 <ng-template ngbNavContent>
7373507f 50 <my-video-import-torrent #videoImportTorrent (firstStepDone)="onFirstStepDone('import-torrent', $event)" (firstStepError)="onError()"></my-video-import-torrent>
b04eabb2 51 </ng-template>
45c6bcf3 52 </ng-container>
c6c0fa6c 53
3914a50b 54 <ng-container ngbNavItem="go-live" *ngIf="isVideoLiveEnabled()">
c6c0fa6c
C
55 <a ngbNavLink>
56 <span i18n>Go live</span>
57 </a>
58
59 <ng-template ngbNavContent>
60 <my-video-go-live #videoGoLive (firstStepDone)="onFirstStepDone('go-live', $event)" (firstStepError)="onError()"></my-video-go-live>
61 </ng-template>
62 </ng-container>
45c6bcf3
C
63 </div>
64
65 <div [ngbNavOutlet]="nav"></div>
c6c0fa6c 66</div>