2 <!-- We need the video container for videojs so we just hide it -->
3 <div [hidden]=
"videoNotFound" id=
"video-element-wrapper">
6 <div i18n *
ngIf=
"videoNotFound" id=
"video-not-found">Video not found :'(
</div>
8 <!-- Video information -->
9 <div *
ngIf=
"video" class=
"margin-content video-bottom">
10 <div class=
"video-info">
11 <div class=
"video-info-first-row">
13 <div class=
"video-info-name">{{ video.name }}
</div>
15 <div i18n
class=
"video-info-date-views">
16 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
19 <div class=
"video-info-channel">
20 <a [routerLink]=
"[ '/video-channels', video.channel.id ]" i18n-title
title=
"Go the channel page">
21 {{ video.channel.displayName }}
23 <!-- Here will be the subscribe button -->
24 <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>
27 <div class=
"video-info-by">
28 <a [routerLink]=
"[ '/accounts', video.by ]" i18n-title
title=
"Go to the account page">
29 <span i18n
>By {{ video.by }}
</span>
30 <img [src]=
"video.accountAvatarUrl" alt=
"Account avatar" />
35 <div class=
"video-actions-rates">
36 <div class=
"video-actions">
38 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()"
39 class=
"action-button action-button-like"
41 <span class=
"icon icon-like" i18n-title
title=
"Like this video" ></span>
45 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()"
46 class=
"action-button action-button-dislike"
48 <span class=
"icon icon-dislike" i18n-title
title=
"Dislike this video"></span>
51 <div *
ngIf=
"video.support" (click)=
"showSupportModal()" class=
"action-button action-button-support">
52 <span class=
"icon icon-support"></span>
53 <span class=
"icon-text" i18n
>Support
</span>
56 <div (click)=
"showShareModal()" class=
"action-button action-button-share">
57 <span class=
"icon icon-share"></span>
58 <span class=
"icon-text" i18n
>Share
</span>
61 <div class=
"action-more" dropdown
dropup=
"true" placement=
"right">
62 <div class=
"action-button" dropdownToggle
>
63 <span class=
"icon icon-more"></span>
66 <ul *dropdownMenu
class=
"dropdown-menu" id=
"more-menu" role=
"menu" aria-labelledby=
"single-button">
68 <a class=
"dropdown-item" i18n-title
title=
"Download the video" href=
"#" (click)=
"showDownloadModal($event)">
69 <span class=
"icon icon-download"></span> <ng-container i18n
>Download
</ng-container>
73 <li *
ngIf=
"isUserLoggedIn()" role=
"menuitem">
74 <a class=
"dropdown-item" i18n-title
title=
"Report this video" href=
"#" (click)=
"showReportModal($event)">
75 <span class=
"icon icon-alert"></span> <ng-container i18n
>Report
</ng-container>
79 <li *
ngIf=
"isVideoBlacklistable()" role=
"menuitem">
80 <a class=
"dropdown-item" i18n-title
title=
"Blacklist this video" href=
"#" (click)=
"blacklistVideo($event)">
81 <span class=
"icon icon-blacklist"></span> <ng-container i18n
>Blacklist
</ng-container>
85 <li *
ngIf=
"isVideoUpdatable()" role=
"menuitem">
86 <a class=
"dropdown-item" i18n-title
title=
"Update this video" href=
"#" [routerLink]=
"[ '/videos/update', video.uuid ]">
87 <span class=
"icon icon-edit"></span> <ng-container i18n
>Update
</ng-container>
91 <li *
ngIf=
"isVideoRemovable()" role=
"menuitem">
92 <a class=
"dropdown-item" i18n-title
title=
"Delete this video" href=
"#" (click)=
"removeVideo($event)">
93 <span class=
"icon icon-blacklist"></span> <ng-container i18n
>Delete
</ng-container>
101 class=
"video-info-likes-dislikes-bar"
102 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0" [tooltip]=
"likesBarTooltipText">
103 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
108 <div class=
"video-info-description">
109 <div class=
"video-info-description-html" [innerHTML]=
"videoHTMLDescription"></div>
111 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
112 <ng-container i18n
>Show more
</ng-container>
113 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
114 <my-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-loader>
117 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
118 <ng-container i18n
>Show less
</ng-container>
119 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
123 <div class=
"video-attributes">
124 <div class=
"video-attribute">
125 <span i18n
class=
"video-attribute-label">
128 <span class=
"video-attribute-value">
129 {{ video.privacy.label }}
133 <div class=
"video-attribute">
134 <span i18n
class=
"video-attribute-label">
137 <span class=
"video-attribute-value">
138 {{ video.category.label }}
142 <div class=
"video-attribute">
143 <span i18n
class=
"video-attribute-label">
146 <span class=
"video-attribute-value">
147 {{ video.licence.label }}
151 <div class=
"video-attribute">
152 <span i18n
class=
"video-attribute-label">
155 <span class=
"video-attribute-value">
156 {{ video.language.label }}
160 <div class=
"video-attribute">
161 <span i18n
class=
"video-attribute-label">
165 <span class=
"video-attribute-value">
171 <my-video-comments [video]=
"video" [user]=
"user"></my-video-comments>
174 <div class=
"other-videos">
175 <div i18n
class=
"title-page title-page-single">
179 <div *
ngFor=
"let video of otherVideosDisplayed">
180 <my-video-miniature [video]=
"video" [user]=
"user"></my-video-miniature>
186 <div class=
"privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
187 <strong i18n
>Friendly Reminder:
</strong>
188 <div class=
"privacy-concerns-text">
190 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.
192 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about#p2p-privacy">More information
</a>
195 <div i18n
class=
"privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
201 <ng-template [ngIf]=
"video !== null">
202 <my-video-support #videoSupportModal [video]=
"video"></my-video-support>
203 <my-video-share #videoShareModal [video]=
"video"></my-video-share>
204 <my-video-download #videoDownloadModal [video]=
"video"></my-video-download>
205 <my-video-report #videoReportModal [video]=
"video"></my-video-report>