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>
6 <img src=
"/client/assets/images/mascot/defeated.svg" alt=
"defeated mascot">
9 <div *
ngIf=
"!user.isUploadDisabled()" class=
"margin-content">
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.
13 Instead,
<a routerLink=
"/admin/users">create a dedicated account
</a> to upload your videos.
16 <my-user-quota *
ngIf=
"!isInSecondStep() || secondStepType === 'go-live'" [user]=
"user" [userInformationLoaded]=
"userInformationLoaded"></my-user-quota>
18 <div class=
"title-page title-page-single" *
ngIf=
"isInSecondStep()">
19 <ng-container *
ngIf=
"secondStepType === 'import-url' || secondStepType === 'import-torrent'" i18n
>Import {{ videoName }}
</ng-container>
20 <ng-container *
ngIf=
"secondStepType === 'upload'" i18n
>Upload {{ videoName }}
</ng-container>
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">
26 <span i18n
>Upload a file
</span>
29 <ng-template ngbNavContent
>
30 <my-video-upload #videoUpload (firstStepDone)=
"onFirstStepDone('upload', $event)" (firstStepError)=
"onError()"></my-video-upload>
34 <ng-container ngbNavItem=
"import-url" *
ngIf=
"isVideoImportHttpEnabled()">
36 <span i18n
>Import with URL
</span>
39 <ng-template ngbNavContent
>
40 <my-video-import-url #videoImportUrl (firstStepDone)=
"onFirstStepDone('import-url', $event)" (firstStepError)=
"onError()"></my-video-import-url>
44 <ng-container ngbNavItem=
"import-torrent" *
ngIf=
"isVideoImportTorrentEnabled()">
46 <span i18n
>Import with torrent
</span>
49 <ng-template ngbNavContent
>
50 <my-video-import-torrent #videoImportTorrent (firstStepDone)=
"onFirstStepDone('import-torrent', $event)" (firstStepError)=
"onError()"></my-video-import-torrent>
54 <ng-container ngbNavItem=
"go-live" *
ngIf=
"isVideoLiveEnabled()">
56 <span i18n
>Go live
</span>
59 <ng-template ngbNavContent
>
60 <my-video-go-live #videoGoLive (firstStepDone)=
"onFirstStepDone('go-live', $event)" (firstStepError)=
"onError()"></my-video-go-live>
65 <div [ngbNavOutlet]=
"nav"></div>