2 <!-- We need the video container for videojs so we just hide it -->
3 <div id=
"video-element-wrapper">
6 <!-- Video information -->
7 <div *
ngIf=
"video" class=
"margin-content video-bottom">
8 <div class=
"video-info">
9 <div class=
"video-info-first-row">
11 <div class=
"video-info-name">{{ video.name }}
</div>
13 <div i18n
class=
"video-info-date-views">
14 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
17 <div class=
"video-info-channel">
18 <a [routerLink]=
"[ '/video-channels', video.channel.id ]" i18n-title
title=
"Go the channel page">
19 {{ video.channel.displayName }}
21 <!-- Here will be the subscribe button -->
22 <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>
25 <div class=
"video-info-by">
26 <a [routerLink]=
"[ '/accounts', video.by ]" i18n-title
title=
"Go to the account page">
27 <span i18n
>By {{ video.by }}
</span>
28 <img [src]=
"video.accountAvatarUrl" alt=
"Account avatar" />
33 <div class=
"video-actions-rates">
34 <div class=
"video-actions">
36 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()"
37 class=
"action-button action-button-like"
39 <span class=
"icon icon-like" i18n-title
title=
"Like this video" ></span>
43 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()"
44 class=
"action-button action-button-dislike"
46 <span class=
"icon icon-dislike" i18n-title
title=
"Dislike this video"></span>
49 <div *
ngIf=
"video.support" (click)=
"showSupportModal()" class=
"action-button action-button-support">
50 <span class=
"icon icon-support"></span>
51 <span class=
"icon-text" i18n
>Support
</span>
54 <div (click)=
"showShareModal()" class=
"action-button action-button-share">
55 <span class=
"icon icon-share"></span>
56 <span class=
"icon-text" i18n
>Share
</span>
59 <div class=
"action-more" dropdown
dropup=
"true" placement=
"right">
60 <div class=
"action-button" dropdownToggle
>
61 <span class=
"icon icon-more"></span>
64 <ul *dropdownMenu
class=
"dropdown-menu" id=
"more-menu" role=
"menu" aria-labelledby=
"single-button">
66 <a class=
"dropdown-item" i18n-title
title=
"Download the video" href=
"#" (click)=
"showDownloadModal($event)">
67 <span class=
"icon icon-download"></span> <ng-container i18n
>Download
</ng-container>
71 <li *
ngIf=
"isUserLoggedIn()" role=
"menuitem">
72 <a class=
"dropdown-item" i18n-title
title=
"Report this video" href=
"#" (click)=
"showReportModal($event)">
73 <span class=
"icon icon-alert"></span> <ng-container i18n
>Report
</ng-container>
77 <li *
ngIf=
"isVideoBlacklistable()" role=
"menuitem">
78 <a class=
"dropdown-item" i18n-title
title=
"Blacklist this video" href=
"#" (click)=
"blacklistVideo($event)">
79 <span class=
"icon icon-blacklist"></span> <ng-container i18n
>Blacklist
</ng-container>
83 <li *
ngIf=
"isVideoUpdatable()" role=
"menuitem">
84 <a class=
"dropdown-item" i18n-title
title=
"Update this video" href=
"#" [routerLink]=
"[ '/videos/update', video.uuid ]">
85 <span class=
"icon icon-edit"></span> <ng-container i18n
>Update
</ng-container>
89 <li *
ngIf=
"isVideoRemovable()" role=
"menuitem">
90 <a class=
"dropdown-item" i18n-title
title=
"Delete this video" href=
"#" (click)=
"removeVideo($event)">
91 <span class=
"icon icon-blacklist"></span> <ng-container i18n
>Delete
</ng-container>
99 class=
"video-info-likes-dislikes-bar"
100 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0" [tooltip]=
"likesBarTooltipText">
101 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
106 <div class=
"video-info-description">
107 <div class=
"video-info-description-html" [innerHTML]=
"videoHTMLDescription"></div>
109 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
110 <ng-container i18n
>Show more
</ng-container>
111 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
112 <my-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-loader>
115 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
116 <ng-container i18n
>Show less
</ng-container>
117 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
121 <div class=
"video-attributes">
122 <div class=
"video-attribute">
123 <span i18n
class=
"video-attribute-label">
126 <span class=
"video-attribute-value">
127 {{ video.privacy.label }}
131 <div class=
"video-attribute">
132 <span i18n
class=
"video-attribute-label">
135 <span class=
"video-attribute-value">
136 {{ video.category.label }}
140 <div class=
"video-attribute">
141 <span i18n
class=
"video-attribute-label">
144 <span class=
"video-attribute-value">
145 {{ video.licence.label }}
149 <div class=
"video-attribute">
150 <span i18n
class=
"video-attribute-label">
153 <span class=
"video-attribute-value">
154 {{ video.language.label }}
158 <div class=
"video-attribute">
159 <span i18n
class=
"video-attribute-label">
163 <span class=
"video-attribute-value">
169 <my-video-comments [video]=
"video" [user]=
"user"></my-video-comments>
172 <div class=
"other-videos">
173 <div i18n
class=
"title-page title-page-single">
177 <div *
ngFor=
"let video of otherVideosDisplayed">
178 <my-video-miniature [video]=
"video" [user]=
"user"></my-video-miniature>
184 <div class=
"privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
185 <strong i18n
>Friendly Reminder:
</strong>
186 <div class=
"privacy-concerns-text">
188 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.
190 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about#p2p-privacy">More information
</a>
193 <div i18n
class=
"privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
199 <ng-template [ngIf]=
"video !== null">
200 <my-video-support #videoSupportModal [video]=
"video"></my-video-support>
201 <my-video-share #videoShareModal [video]=
"video"></my-video-share>
202 <my-video-download #videoDownloadModal [video]=
"video"></my-video-download>
203 <my-video-report #videoReportModal [video]=
"video"></my-video-report>