2 <!-- We need the video container for videojs so we just hide it -->
3 <div id=
"video-element-wrapper">
6 <div i18n
class=
"alert alert-warning" *
ngIf=
"isVideoToTranscode()">
7 The video is being transcoded, it may not work properly.
10 <div i18n
class=
"alert alert-info" *
ngIf=
"hasVideoScheduledPublication()">
11 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}
14 <!-- Video information -->
15 <div *
ngIf=
"video" class=
"margin-content video-bottom">
16 <div class=
"video-info">
17 <div class=
"video-info-first-row">
19 <div class=
"video-info-name">{{ video.name }}
</div>
21 <div i18n
class=
"video-info-date-views">
22 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
25 <div class=
"video-info-channel">
26 <a [routerLink]=
"[ '/video-channels', video.channel.id ]" i18n-title
title=
"Go the channel page">
27 {{ video.channel.displayName }}
29 <!-- Here will be the subscribe button -->
30 <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>
33 <div class=
"video-info-by">
34 <a [routerLink]=
"[ '/accounts', video.by ]" i18n-title
title=
"Go to the account page">
35 <span i18n
>By {{ video.by }}
</span>
36 <img [src]=
"video.accountAvatarUrl" alt=
"Account avatar" />
41 <div class=
"video-actions-rates">
42 <div class=
"video-actions">
44 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()"
45 class=
"action-button action-button-like"
47 <span class=
"icon icon-like" i18n-title
title=
"Like this video" ></span>
51 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()"
52 class=
"action-button action-button-dislike"
54 <span class=
"icon icon-dislike" i18n-title
title=
"Dislike this video"></span>
57 <div *
ngIf=
"video.support" (click)=
"showSupportModal()" class=
"action-button action-button-support">
58 <span class=
"icon icon-support"></span>
59 <span class=
"icon-text" i18n
>Support
</span>
62 <div (click)=
"showShareModal()" class=
"action-button action-button-share">
63 <span class=
"icon icon-share"></span>
64 <span class=
"icon-text" i18n
>Share
</span>
67 <div class=
"action-more" dropdown
dropup=
"true" placement=
"right">
68 <div class=
"action-button" dropdownToggle
>
69 <span class=
"icon icon-more"></span>
72 <ul *dropdownMenu
class=
"dropdown-menu" id=
"more-menu" role=
"menu" aria-labelledby=
"single-button">
74 <a class=
"dropdown-item" i18n-title
title=
"Download the video" href=
"#" (click)=
"showDownloadModal($event)">
75 <span class=
"icon icon-download"></span> <ng-container i18n
>Download
</ng-container>
79 <li *
ngIf=
"isUserLoggedIn()" role=
"menuitem">
80 <a class=
"dropdown-item" i18n-title
title=
"Report this video" href=
"#" (click)=
"showReportModal($event)">
81 <span class=
"icon icon-alert"></span> <ng-container i18n
>Report
</ng-container>
85 <li *
ngIf=
"isVideoBlacklistable()" role=
"menuitem">
86 <a class=
"dropdown-item" i18n-title
title=
"Blacklist this video" href=
"#" (click)=
"blacklistVideo($event)">
87 <span class=
"icon icon-blacklist"></span> <ng-container i18n
>Blacklist
</ng-container>
91 <li *
ngIf=
"isVideoUpdatable()" role=
"menuitem">
92 <a class=
"dropdown-item" i18n-title
title=
"Update this video" href=
"#" [routerLink]=
"[ '/videos/update', video.uuid ]">
93 <span class=
"icon icon-edit"></span> <ng-container i18n
>Update
</ng-container>
97 <li *
ngIf=
"isVideoRemovable()" role=
"menuitem">
98 <a class=
"dropdown-item" i18n-title
title=
"Delete this video" href=
"#" (click)=
"removeVideo($event)">
99 <span class=
"icon icon-blacklist"></span> <ng-container i18n
>Delete
</ng-container>
107 class=
"video-info-likes-dislikes-bar"
108 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0" [tooltip]=
"likesBarTooltipText">
109 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
114 <div class=
"video-info-description">
115 <div class=
"video-info-description-html" [innerHTML]=
"videoHTMLDescription"></div>
117 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
118 <ng-container i18n
>Show more
</ng-container>
119 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
120 <my-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-loader>
123 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
124 <ng-container i18n
>Show less
</ng-container>
125 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
129 <div class=
"video-attributes">
130 <div class=
"video-attribute">
131 <span i18n
class=
"video-attribute-label">
134 <span class=
"video-attribute-value">
135 {{ video.privacy.label }}
139 <div class=
"video-attribute">
140 <span i18n
class=
"video-attribute-label">
143 <span class=
"video-attribute-value">
144 {{ video.category.label }}
148 <div class=
"video-attribute">
149 <span i18n
class=
"video-attribute-label">
152 <span class=
"video-attribute-value">
153 {{ video.licence.label }}
157 <div class=
"video-attribute">
158 <span i18n
class=
"video-attribute-label">
161 <span class=
"video-attribute-value">
162 {{ video.language.label }}
166 <div class=
"video-attribute">
167 <span i18n
class=
"video-attribute-label">
171 <span class=
"video-attribute-value">
177 <my-video-comments [video]=
"video" [user]=
"user"></my-video-comments>
180 <div class=
"other-videos">
181 <div i18n
class=
"title-page title-page-single">
185 <div *
ngFor=
"let video of otherVideosDisplayed">
186 <my-video-miniature [video]=
"video" [user]=
"user"></my-video-miniature>
192 <div class=
"privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
193 <strong i18n
>Friendly Reminder:
</strong>
194 <div class=
"privacy-concerns-text">
196 The sharing system used by this video implies that some technical information about your system (such as a public IP address) can be accessed publicly.
198 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about#p2p-privacy">More information
</a>
201 <div i18n
class=
"privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
207 <ng-template [ngIf]=
"video !== null">
208 <my-video-support #videoSupportModal [video]=
"video"></my-video-support>
209 <my-video-share #videoShareModal [video]=
"video"></my-video-share>
210 <my-video-download #videoDownloadModal [video]=
"video"></my-video-download>
211 <my-video-report #videoReportModal [video]=
"video"></my-video-report>