2 <!-- We need the video container for videojs so we just hide it -->
3 <div [hidden]=
"videoNotFound" id=
"video-element-wrapper">
6 <div *
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 class=
"video-info-date-views">
16 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
19 <div class=
"video-info-channel">
20 {{ video.channel.displayName }}
21 <!-- Here will be the subscribe button -->
24 <div class=
"video-info-by">
26 <img [src]=
"getAvatarPath()" alt=
"Account avatar" />
30 <div class=
"video-actions-rates">
31 <div class=
"video-actions">
33 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()"
34 class=
"action-button action-button-like"
36 <span class=
"icon icon-like" title=
"Like this video" ></span>
40 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()"
41 class=
"action-button action-button-dislike"
43 <span class=
"icon icon-dislike" title=
"Dislike this video"></span>
46 <div *
ngIf=
"video.support" (click)=
"showSupportModal()" class=
"action-button action-button-support">
47 <span class=
"icon icon-support"></span>
48 <span class=
"icon-text">Support
</span>
51 <div (click)=
"showShareModal()" class=
"action-button action-button-share">
52 <span class=
"icon icon-share"></span>
53 <span class=
"icon-text">Share
</span>
56 <div class=
"action-more" dropdown
dropup=
"true" placement=
"right">
57 <div class=
"action-button" dropdownToggle
>
58 <span class=
"icon icon-more"></span>
61 <ul *dropdownMenu
class=
"dropdown-menu" id=
"more-menu" role=
"menu" aria-labelledby=
"single-button">
63 <a class=
"dropdown-item" title=
"Download the video" href=
"#" (click)=
"showDownloadModal($event)">
64 <span class=
"icon icon-download"></span> Download
68 <li *
ngIf=
"isUserLoggedIn()" role=
"menuitem">
69 <a class=
"dropdown-item" title=
"Report this video" href=
"#" (click)=
"showReportModal($event)">
70 <span class=
"icon icon-alert"></span> Report
74 <li *
ngIf=
"isVideoBlacklistable()" role=
"menuitem">
75 <a class=
"dropdown-item" title=
"Blacklist this video" href=
"#" (click)=
"blacklistVideo($event)">
76 <span class=
"icon icon-blacklist"></span> Blacklist
80 <li *
ngIf=
"isVideoUpdatable()" role=
"menuitem">
81 <a class=
"dropdown-item" title=
"Update this video" href=
"#" [routerLink]=
"[ '/videos/edit', video.uuid ]">
82 <span class=
"icon icon-edit"></span> Update
86 <li *
ngIf=
"isVideoRemovable()" role=
"menuitem">
87 <a class=
"dropdown-item" title=
"Delete this video" href=
"#" (click)=
"removeVideo($event)">
88 <span class=
"icon icon-blacklist"></span> Delete
96 class=
"video-info-likes-dislikes-bar"
97 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0" [tooltip]=
"likesBarTooltipText">
98 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
103 <div class=
"video-info-description">
104 <div class=
"video-info-description-html" [innerHTML]=
"videoHTMLDescription"></div>
106 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
108 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
109 <my-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-loader>
112 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
114 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
118 <div class=
"video-attributes">
119 <div class=
"video-attribute">
120 <span class=
"video-attribute-label">
123 <span class=
"video-attribute-value">
124 {{ video.privacy.label }}
128 <div class=
"video-attribute">
129 <span class=
"video-attribute-label">
132 <span class=
"video-attribute-value">
133 {{ video.category.label }}
137 <div class=
"video-attribute">
138 <span class=
"video-attribute-label">
141 <span class=
"video-attribute-value">
142 {{ video.licence.label }}
146 <div class=
"video-attribute">
147 <span class=
"video-attribute-label">
150 <span class=
"video-attribute-value">
151 {{ video.language.label }}
155 <div class=
"video-attribute">
156 <span class=
"video-attribute-label">
160 <span class=
"video-attribute-value">
166 <my-video-comments [video]=
"video" [user]=
"user"></my-video-comments>
169 <div class=
"other-videos">
170 <div class=
"title-page title-page-single">
174 <div *
ngFor=
"let video of otherVideosDisplayed">
175 <my-video-miniature [video]=
"video" [user]=
"user"></my-video-miniature>
181 <div class=
"privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
182 <strong>Friendly Reminder:
</strong>
183 <div class=
"privacy-concerns-text">
184 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.
185 <a title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about#p2p-privacy">More information
</a>
188 <div class=
"privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
194 <ng-template [ngIf]=
"video !== null">
195 <my-video-support #videoSupportModal [video]=
"video"></my-video-support>
196 <my-video-share #videoShareModal [video]=
"video"></my-video-share>
197 <my-video-download #videoDownloadModal [video]=
"video"></my-video-download>
198 <my-video-report #videoReportModal [video]=
"video"></my-video-report>