2 <!-- We need the video container for videojs so we just hide it -->
3 <div [hidden]=
"videoNotFound" id=
"video-container">
4 <video id=
"video-element" class=
"video-js vjs-peertube-skin"></video>
7 <div *
ngIf=
"videoNotFound" id=
"video-not-found">Video not found :'(
</div>
9 <!-- Video information -->
10 <div *
ngIf=
"video" class=
"margin-content video-bottom">
11 <div class=
"video-info">
12 <div class=
"video-info-name-actions">
13 <div class=
"video-info-name">{{ video.name }}
</div>
15 <div class=
"video-info-actions">
17 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()"
18 class=
"action-button action-button-like">
19 <span class=
"icon icon-like" title=
"Like this video" ></span>
23 *
ngIf=
"isUserLoggedIn()" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()"
24 class=
"action-button action-button-dislike">
25 <span class=
"icon icon-dislike" title=
"Dislike this video"></span>
28 <div (click)=
"showShareModal()" class=
"action-button">
29 <span class=
"icon icon-share"></span>
33 <div class=
"action-more" dropdown
dropup=
"true" placement=
"right">
34 <div class=
"action-button" dropdownToggle
>
35 <span class=
"icon icon-more"></span>
38 <ul *dropdownMenu
class=
"dropdown-menu" id=
"more-menu" role=
"menu" aria-labelledby=
"single-button">
40 <a class=
"dropdown-item" title=
"Download the video" href=
"#" (click)=
"showDownloadModal($event)">
41 <span class=
"icon icon-download"></span> Download
45 <li *
ngIf=
"isUserLoggedIn()" role=
"menuitem">
46 <a class=
"dropdown-item" title=
"Report this video" href=
"#" (click)=
"showReportModal($event)">
47 <span class=
"icon icon-alert"></span> Report
51 <li *
ngIf=
"isVideoBlacklistable()" role=
"menuitem">
52 <a class=
"dropdown-item" title=
"Blacklist this video" href=
"#" (click)=
"blacklistVideo($event)">
53 <span class=
"icon icon-blacklist"></span> Blacklist
57 <li *
ngIf=
"isVideoUpdatable()" role=
"menuitem">
58 <a class=
"dropdown-item" title=
"Update this video" href=
"#" [routerLink]=
"[ '/videos/edit', video.uuid ]">
59 <span class=
"icon icon-edit"></span> Update
63 <li *
ngIf=
"isVideoRemovable()" role=
"menuitem">
64 <a class=
"dropdown-item" title=
"Delete this video" href=
"#" (click)=
"removeVideo($event)">
65 <span class=
"icon icon-blacklist"></span> Delete
73 <div class=
"video-info-date-views-bar">
74 <div class=
"video-info-date-views">
75 {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
79 class=
"video-info-likes-dislikes-bar"
80 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0" [tooltip]=
"likesBarTooltipText">
81 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
85 <div class=
"video-info-channel">
86 {{ video.channel.name }}
87 <!-- Here will be the subscribe button -->
90 <div class=
"video-info-by">
92 <img [src]=
"getAvatarPath()" alt=
"Account avatar" />
95 <div class=
"video-info-description">
96 <div class=
"video-info-description-html" [innerHTML]=
"videoHTMLDescription"></div>
98 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length === 250" (click)=
"showMoreDescription()">
100 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
101 <my-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-loader>
104 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
106 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
110 <div class=
"video-attributes">
111 <div class=
"video-attribute">
112 <span class=
"video-attribute-label">
115 <span class=
"video-attribute-value">
116 {{ video.privacyLabel }}
120 <div class=
"video-attribute">
121 <span class=
"video-attribute-label">
124 <span class=
"video-attribute-value">
125 {{ video.categoryLabel }}
129 <div class=
"video-attribute">
130 <span class=
"video-attribute-label">
133 <span class=
"video-attribute-value">
134 {{ video.licenceLabel }}
138 <div class=
"video-attribute">
139 <span class=
"video-attribute-label">
142 <span class=
"video-attribute-value">
143 {{ video.languageLabel }}
147 <div class=
"video-attribute">
148 <span class=
"video-attribute-label">
152 <span class=
"video-attribute-value">
158 <my-video-comments [video]=
"video" [user]=
"user"></my-video-comments>
161 <div class=
"other-videos">
162 <div class=
"title-page title-page-single">
166 <div *
ngFor=
"let video of otherVideos">
167 <my-video-miniature [video]=
"video" [user]=
"user"></my-video-miniature>
173 <ng-template [ngIf]=
"video !== null">
174 <my-video-share #videoShareModal [video]=
"video"></my-video-share>
175 <my-video-download #videoDownloadModal [video]=
"video"></my-video-download>
176 <my-video-report #videoReportModal [video]=
"video"></my-video-report>