2020-07-28 13:18:38 +00:00
|
|
|
<div *ngIf="user.isUploadDisabled()" class="no-upload">
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
<div i18n>Sorry, the upload feature is disabled for your account. If you want to add videos, an admin must unlock your quota.</div>
|
|
|
|
<a i18n routerLink="/about/instance" class="about-link">Read instance rules for help</a>
|
|
|
|
</div>
|
|
|
|
<img src="/client/assets/images/mascot/defeated.svg" alt="defeated mascot">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div *ngIf="!user.isUploadDisabled()" class="margin-content">
|
2019-12-10 09:02:23 +00:00
|
|
|
<div class="alert alert-warning" *ngIf="isRootUser()" i18n>
|
|
|
|
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.
|
|
|
|
<br />
|
|
|
|
Instead, <a routerLink="/admin/users">create a dedicated account</a> to upload your videos.
|
|
|
|
</div>
|
|
|
|
|
2020-10-26 15:44:23 +00:00
|
|
|
<my-user-quota *ngIf="!isInSecondStep() || secondStepType === 'go-live'" [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-quota>
|
2020-07-24 06:53:25 +00:00
|
|
|
|
2019-12-10 09:02:23 +00:00
|
|
|
<div class="title-page title-page-single" *ngIf="isInSecondStep()">
|
2018-08-07 15:18:35 +00:00
|
|
|
<ng-container *ngIf="secondStepType === 'import-url' || secondStepType === 'import-torrent'" i18n>Import {{ videoName }}</ng-container>
|
2018-08-02 13:34:09 +00:00
|
|
|
<ng-container *ngIf="secondStepType === 'upload'" i18n>Upload {{ videoName }}</ng-container>
|
2017-12-07 15:32:06 +00:00
|
|
|
</div>
|
2017-04-21 16:26:09 +00:00
|
|
|
|
2021-05-11 13:03:30 +00:00
|
|
|
<div ngbNav #nav="ngbNav" class="nav-tabs video-add-nav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" [ngClass]="{ 'hide-nav': !!secondStepType }">
|
|
|
|
<ng-container ngbNavItem="upload">
|
2020-04-01 14:52:59 +00:00
|
|
|
<a ngbNavLink>
|
|
|
|
<span i18n>Upload a file</span>
|
|
|
|
</a>
|
2017-04-21 16:26:09 +00:00
|
|
|
|
2020-04-01 14:52:59 +00:00
|
|
|
<ng-template ngbNavContent>
|
2018-11-16 09:05:25 +00:00
|
|
|
<my-video-upload #videoUpload (firstStepDone)="onFirstStepDone('upload', $event)" (firstStepError)="onError()"></my-video-upload>
|
2018-08-09 17:08:54 +00:00
|
|
|
</ng-template>
|
2020-04-01 14:52:59 +00:00
|
|
|
</ng-container>
|
2017-04-21 16:26:09 +00:00
|
|
|
|
2021-05-11 13:03:30 +00:00
|
|
|
<ng-container ngbNavItem="import-url" *ngIf="isVideoImportHttpEnabled()">
|
2020-04-01 14:52:59 +00:00
|
|
|
<a ngbNavLink>
|
|
|
|
<span i18n>Import with URL</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ng-template ngbNavContent>
|
2018-11-16 09:05:25 +00:00
|
|
|
<my-video-import-url #videoImportUrl (firstStepDone)="onFirstStepDone('import-url', $event)" (firstStepError)="onError()"></my-video-import-url>
|
2018-08-09 17:08:54 +00:00
|
|
|
</ng-template>
|
2020-04-01 14:52:59 +00:00
|
|
|
</ng-container>
|
|
|
|
|
2021-05-11 13:03:30 +00:00
|
|
|
<ng-container ngbNavItem="import-torrent" *ngIf="isVideoImportTorrentEnabled()">
|
2020-04-01 14:52:59 +00:00
|
|
|
<a ngbNavLink>
|
|
|
|
<span i18n>Import with torrent</span>
|
|
|
|
</a>
|
2018-08-06 15:13:39 +00:00
|
|
|
|
2020-04-01 14:52:59 +00:00
|
|
|
<ng-template ngbNavContent>
|
2018-11-16 09:05:25 +00:00
|
|
|
<my-video-import-torrent #videoImportTorrent (firstStepDone)="onFirstStepDone('import-torrent', $event)" (firstStepError)="onError()"></my-video-import-torrent>
|
2018-08-09 17:08:54 +00:00
|
|
|
</ng-template>
|
2020-04-01 14:52:59 +00:00
|
|
|
</ng-container>
|
2020-09-17 07:20:52 +00:00
|
|
|
|
2021-05-11 13:03:30 +00:00
|
|
|
<ng-container ngbNavItem="go-live" *ngIf="isVideoLiveEnabled()">
|
2020-09-17 07:20:52 +00:00
|
|
|
<a ngbNavLink>
|
|
|
|
<span i18n>Go live</span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ng-template ngbNavContent>
|
|
|
|
<my-video-go-live #videoGoLive (firstStepDone)="onFirstStepDone('go-live', $event)" (firstStepError)="onError()"></my-video-go-live>
|
|
|
|
</ng-template>
|
|
|
|
</ng-container>
|
2020-04-01 14:52:59 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div [ngbNavOutlet]="nav"></div>
|
2020-09-17 07:20:52 +00:00
|
|
|
</div>
|