2 <!-- We need the video container for videojs so we just hide it -->
3 <div id="video-element-wrapper">
4 <div *ngIf="remoteServerDown" class="remote-server-down">
5 Sorry, but this video is not available because the remote instance is not responding.
7 Please try again later.
11 <div i18n class="alert alert-warning" *ngIf="isVideoToImport()">
12 The video is being imported, it will be available when the import is finished.
15 <div i18n class="alert alert-warning" *ngIf="isVideoToTranscode()">
16 The video is being transcoded, it may not work properly.
19 <div i18n class="alert alert-info" *ngIf="hasVideoScheduledPublication()">
20 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}
23 <!-- Video information -->
24 <div *ngIf="video" class="margin-content video-bottom">
25 <div class="video-info">
26 <div class="video-info-first-row">
28 <div class="video-info-name">{{ video.name }}</div>
30 <div i18n class="video-info-date-views">
31 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
34 <div class="video-info-channel">
35 <a [routerLink]="[ '/video-channels', video.channel.uuid ]" i18n-title title="Go the channel page">
36 {{ video.channel.displayName }}
38 <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" />
40 <!-- Here will be the subscribe button -->
43 <div class="video-info-by">
44 <a [routerLink]="[ '/accounts', video.by ]" i18n-title title="Go to the account page">
45 <span i18n>By {{ video.by }}</span>
46 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
49 <my-help helpType="custom" i18n-customHtml customHtml="You can subscribe to this account via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box <strong>@{{video.account.name}}@{{video.account.host}}</strong> and subscribe there. Subscription as a PeerTube user is being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/470'>#470</a>."></my-help>
53 <div class="video-actions-rates">
54 <div class="video-actions">
56 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
57 class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'"
59 <span class="icon icon-like" i18n-title title="Like this video" ></span>
63 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
64 class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'"
66 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
69 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
70 <span class="icon icon-support"></span>
71 <span class="icon-text" i18n>Support</span>
74 <div (click)="showShareModal()" class="action-button action-button-share" role="button">
75 <span class="icon icon-share"></span>
76 <span class="icon-text" i18n>Share</span>
79 <div class="action-more" ngbDropdown placement="top" role="button">
80 <div class="action-button" ngbDropdownToggle role="button">
81 <span class="icon icon-more"></span>
85 <a class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)">
86 <span class="icon icon-download"></span> <ng-container i18n>Download</ng-container>
89 <a *ngIf="isUserLoggedIn()" class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)">
90 <span class="icon icon-alert"></span> <ng-container i18n>Report</ng-container>
93 <a *ngIf="isVideoBlacklistable()" class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
94 <span class="icon icon-blacklist"></span> <ng-container i18n>Blacklist</ng-container>
97 <a *ngIf="isVideoUpdatable()" class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]">
98 <span class="icon icon-edit"></span> <ng-container i18n>Update</ng-container>
101 <a *ngIf="isVideoRemovable()" class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)">
102 <span class="icon icon-blacklist"></span> <ng-container i18n>Delete</ng-container>
109 class="video-info-likes-dislikes-bar"
110 *ngIf="video.likes !== 0 || video.dislikes !== 0" [ngbTooltip]="likesBarTooltipText">
111 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
116 <div class="video-info-description">
117 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
119 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
120 <ng-container i18n>Show more</ng-container>
121 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
122 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
125 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
126 <ng-container i18n>Show less</ng-container>
127 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
131 <div class="video-attributes">
132 <div class="video-attribute">
133 <span i18n class="video-attribute-label">Privacy</span>
134 <span class="video-attribute-value">{{ video.privacy.label }}</span>
137 <div class="video-attribute">
138 <span i18n class="video-attribute-label">Category</span>
139 <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span>
141 *ngIf="video.category.id" class="video-attribute-value"
142 [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }"
143 >{{ video.category.label }}</a>
146 <div class="video-attribute">
147 <span i18n class="video-attribute-label">Licence</span>
148 <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span>
150 *ngIf="video.licence.id" class="video-attribute-value"
151 [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }"
152 >{{ video.licence.label }}</a>
155 <div class="video-attribute">
156 <span i18n class="video-attribute-label">Language</span>
157 <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span>
159 *ngIf="video.language.id" class="video-attribute-value"
160 [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }"
161 >{{ video.language.label }}</a>
164 <div class="video-attribute video-attribute-tags">
165 <span i18n class="video-attribute-label">Tags</span>
167 *ngFor="let tag of getVideoTags()"
168 class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }"
173 <my-video-comments [video]="video" [user]="user"></my-video-comments>
176 <div class="other-videos">
177 <div i18n class="title-page title-page-single">
181 <div *ngFor="let video of otherVideosDisplayed">
182 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
188 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
189 <strong i18n>Friendly Reminder:</strong>
190 <div class="privacy-concerns-text">
192 The sharing system used by this video implies that some technical information about your system (such as a public IP address) can be sent to other peers.
194 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a>
197 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
203 <ng-template [ngIf]="video !== null">
204 <my-video-support #videoSupportModal [video]="video"></my-video-support>
205 <my-video-share #videoShareModal [video]="video"></my-video-share>
206 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
207 <my-video-report #videoReportModal [video]="video"></my-video-report>