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">
25 <a [routerLink]="[ '/account', video.account.id ]" title="Go the account page">
26 <span>By {{ video.by }}</span>
27 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
32 <div class="video-actions-rates">
33 <div class="video-actions">
35 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
36 class="action-button action-button-like"
38 <span class="icon icon-like" title="Like this video" ></span>
42 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
43 class="action-button action-button-dislike"
45 <span class="icon icon-dislike" title="Dislike this video"></span>
48 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
49 <span class="icon icon-support"></span>
50 <span class="icon-text">Support</span>
53 <div (click)="showShareModal()" class="action-button action-button-share">
54 <span class="icon icon-share"></span>
55 <span class="icon-text">Share</span>
58 <div class="action-more" dropdown dropup="true" placement="right">
59 <div class="action-button" dropdownToggle>
60 <span class="icon icon-more"></span>
63 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
65 <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)">
66 <span class="icon icon-download"></span> Download
70 <li *ngIf="isUserLoggedIn()" role="menuitem">
71 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
72 <span class="icon icon-alert"></span> Report
76 <li *ngIf="isVideoBlacklistable()" role="menuitem">
77 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
78 <span class="icon icon-blacklist"></span> Blacklist
82 <li *ngIf="isVideoUpdatable()" role="menuitem">
83 <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]">
84 <span class="icon icon-edit"></span> Update
88 <li *ngIf="isVideoRemovable()" role="menuitem">
89 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
90 <span class="icon icon-blacklist"></span> Delete
98 class="video-info-likes-dislikes-bar"
99 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText">
100 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
105 <div class="video-info-description">
106 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
108 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
110 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
111 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
114 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
116 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
120 <div class="video-attributes">
121 <div class="video-attribute">
122 <span class="video-attribute-label">
125 <span class="video-attribute-value">
126 {{ video.privacy.label }}
130 <div class="video-attribute">
131 <span class="video-attribute-label">
134 <span class="video-attribute-value">
135 {{ video.category.label }}
139 <div class="video-attribute">
140 <span class="video-attribute-label">
143 <span class="video-attribute-value">
144 {{ video.licence.label }}
148 <div class="video-attribute">
149 <span class="video-attribute-label">
152 <span class="video-attribute-value">
153 {{ video.language.label }}
157 <div class="video-attribute">
158 <span class="video-attribute-label">
162 <span class="video-attribute-value">
168 <my-video-comments [video]="video" [user]="user"></my-video-comments>
171 <div class="other-videos">
172 <div class="title-page title-page-single">
176 <div *ngFor="let video of otherVideosDisplayed">
177 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
183 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
184 <strong>Friendly Reminder:</strong>
185 <div class="privacy-concerns-text">
186 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.
187 <a title="Get more information" target="_blank" rel="noopener noreferrer" href="/about#p2p-privacy">More information</a>
190 <div class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
196 <ng-template [ngIf]="video !== null">
197 <my-video-support #videoSupportModal [video]="video"></my-video-support>
198 <my-video-share #videoShareModal [video]="video"></my-video-share>
199 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
200 <my-video-report #videoReportModal [video]="video"></my-video-report>