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=
"isVideoToTranscode()">
12 The video is being transcoded, it may not work properly.
15 <div i18n
class=
"alert alert-info" *
ngIf=
"hasVideoScheduledPublication()">
16 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}
19 <!-- Video information -->
20 <div *
ngIf=
"video" class=
"margin-content video-bottom">
21 <div class=
"video-info">
22 <div class=
"video-info-first-row">
24 <div class=
"video-info-name">{{ video.name }}
</div>
26 <div i18n
class=
"video-info-date-views">
27 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
30 <div class=
"video-info-channel">
31 <a [routerLink]=
"[ '/video-channels', video.channel.uuid ]" i18n-title
title=
"Go the channel page">
32 {{ video.channel.displayName }}
34 <img [src]=
"video.videoChannelAvatarUrl" alt=
"Video channel avatar" />
36 <!-- Here will be the subscribe button -->
37 <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>
40 <div class=
"video-info-by">
41 <a [routerLink]=
"[ '/accounts', video.by ]" i18n-title
title=
"Go to the account page">
42 <span i18n
>By {{ video.by }}
</span>
43 <img [src]=
"video.accountAvatarUrl" alt=
"Account avatar" />
48 <div class=
"video-actions-rates">
49 <div class=
"video-actions">
51 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()"
52 class=
"action-button action-button-like" role=
"button" [attr.aria-pressed]=
"userRating === 'like'"
54 <span class=
"icon icon-like" i18n-title
title=
"Like this video" ></span>
58 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()"
59 class=
"action-button action-button-dislike" role=
"button" [attr.aria-pressed]=
"userRating === 'dislike'"
61 <span class=
"icon icon-dislike" i18n-title
title=
"Dislike this video"></span>
64 <div *
ngIf=
"video.support" (click)=
"showSupportModal()" class=
"action-button action-button-support">
65 <span class=
"icon icon-support"></span>
66 <span class=
"icon-text" i18n
>Support
</span>
69 <div (click)=
"showShareModal()" class=
"action-button action-button-share" role=
"button">
70 <span class=
"icon icon-share"></span>
71 <span class=
"icon-text" i18n
>Share
</span>
74 <div class=
"action-more" dropdown
dropup=
"true" placement=
"right" role=
"button">
75 <div class=
"action-button" dropdownToggle
>
76 <span class=
"icon icon-more"></span>
79 <ul *dropdownMenu
class=
"dropdown-menu" id=
"more-menu" role=
"menu" aria-labelledby=
"single-button">
81 <a class=
"dropdown-item" i18n-title
title=
"Download the video" href=
"#" (click)=
"showDownloadModal($event)">
82 <span class=
"icon icon-download"></span> <ng-container i18n
>Download
</ng-container>
86 <li *
ngIf=
"isUserLoggedIn()" role=
"menuitem">
87 <a class=
"dropdown-item" i18n-title
title=
"Report this video" href=
"#" (click)=
"showReportModal($event)">
88 <span class=
"icon icon-alert"></span> <ng-container i18n
>Report
</ng-container>
92 <li *
ngIf=
"isVideoBlacklistable()" role=
"menuitem">
93 <a 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>
98 <li *
ngIf=
"isVideoUpdatable()" role=
"menuitem">
99 <a class=
"dropdown-item" i18n-title
title=
"Update this video" href=
"#" [routerLink]=
"[ '/videos/update', video.uuid ]">
100 <span class=
"icon icon-edit"></span> <ng-container i18n
>Update
</ng-container>
104 <li *
ngIf=
"isVideoRemovable()" role=
"menuitem">
105 <a class=
"dropdown-item" i18n-title
title=
"Delete this video" href=
"#" (click)=
"removeVideo($event)">
106 <span class=
"icon icon-blacklist"></span> <ng-container i18n
>Delete
</ng-container>
114 class=
"video-info-likes-dislikes-bar"
115 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0" [tooltip]=
"likesBarTooltipText">
116 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
121 <div class=
"video-info-description">
122 <div class=
"video-info-description-html" [innerHTML]=
"videoHTMLDescription"></div>
124 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
125 <ng-container i18n
>Show more
</ng-container>
126 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
127 <my-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-loader>
130 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
131 <ng-container i18n
>Show less
</ng-container>
132 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
136 <div class=
"video-attributes">
137 <div class=
"video-attribute">
138 <span i18n
class=
"video-attribute-label">
141 <span class=
"video-attribute-value">
142 {{ video.privacy.label }}
146 <div class=
"video-attribute">
147 <span i18n
class=
"video-attribute-label">
150 <span class=
"video-attribute-value">
151 {{ video.category.label }}
155 <div class=
"video-attribute">
156 <span i18n
class=
"video-attribute-label">
159 <span class=
"video-attribute-value">
160 {{ video.licence.label }}
164 <div class=
"video-attribute">
165 <span i18n
class=
"video-attribute-label">
168 <span class=
"video-attribute-value">
169 {{ video.language.label }}
173 <div class=
"video-attribute">
174 <span i18n
class=
"video-attribute-label">
178 <span class=
"video-attribute-value">
184 <my-video-comments [video]=
"video" [user]=
"user"></my-video-comments>
187 <div class=
"other-videos">
188 <div i18n
class=
"title-page title-page-single">
192 <div *
ngFor=
"let video of otherVideosDisplayed">
193 <my-video-miniature [video]=
"video" [user]=
"user"></my-video-miniature>
199 <div class=
"privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
200 <strong i18n
>Friendly Reminder:
</strong>
201 <div class=
"privacy-concerns-text">
203 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.
205 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about/peertube">More information
</a>
208 <div i18n
class=
"privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
214 <ng-template [ngIf]=
"video !== null">
215 <my-video-support #videoSupportModal [video]=
"video"></my-video-support>
216 <my-video-share #videoShareModal [video]=
"video"></my-video-share>
217 <my-video-download #videoDownloadModal [video]=
"video"></my-video-download>
218 <my-video-report #videoReportModal [video]=
"video"></my-video-report>