]>
Commit | Line | Data |
---|---|---|
d1992b93 | 1 | <div class="row"> |
897ec54d | 2 | <!-- We need the video container for videojs so we just hide it --> |
be6a4802 | 3 | <div [hidden]="videoNotFound" id="video-container"> |
b9828abe | 4 | <video id="video-element" class="video-js vjs-peertube-skin vjs-fluid"></video> |
d1992b93 | 5 | </div> |
897ec54d C |
6 | |
7 | <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | |
dc8bc31b | 8 | </div> |
da932efc | 9 | |
d6e32a2e | 10 | <!-- Video information --> |
b1fa3eba C |
11 | <div *ngIf="video" class="margin-content video-bottom"> |
12 | <div class="video-info"> | |
13 | <div class="video-info-name-actions"> | |
14 | <div class="video-info-name">{{ video.name }}</div> | |
15 | ||
16 | <div class="video-info-actions"> | |
7b272fd7 C |
17 | <div *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" class="action-button"> |
18 | <span class="icon icon-like" title="Like this video" (click)="setLike()"></span> | |
b1fa3eba | 19 | </div> |
d1992b93 | 20 | |
7b272fd7 C |
21 | <div *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" class="action-button"> |
22 | <span class="icon icon-dislike" title="Dislike this video" (click)="setDislike()"></span> | |
b1fa3eba | 23 | </div> |
d38b8281 | 24 | |
b1fa3eba C |
25 | <div (click)="showShareModal()" class="action-button"> |
26 | <span class="icon icon-share"></span> | |
27 | Share | |
28 | </div> | |
99cc4f49 | 29 | |
b1fa3eba C |
30 | <div class="action-more" dropdown dropup="true" placement="right"> |
31 | <div class="action-button" dropdownToggle> | |
32 | <span class="icon icon-more"></span> | |
33 | </div> | |
34 | ||
35 | <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button"> | |
b1fa3eba C |
36 | <li role="menuitem"> |
37 | <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)"> | |
7b272fd7 | 38 | <span class="icon icon-download"></span> Download |
b1fa3eba C |
39 | </a> |
40 | </li> | |
41 | ||
42 | <li *ngIf="isUserLoggedIn()" role="menuitem"> | |
43 | <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)"> | |
7b272fd7 | 44 | <span class="icon icon-alert"></span> Report |
b1fa3eba C |
45 | </a> |
46 | </li> | |
47 | ||
48 | <li *ngIf="isVideoBlacklistable()" role="menuitem"> | |
49 | <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)"> | |
7b272fd7 | 50 | <span class="icon icon-blacklist"></span> Blacklist |
b1fa3eba C |
51 | </a> |
52 | </li> | |
53 | </ul> | |
54 | </div> | |
4f8c0eb0 | 55 | </div> |
d1992b93 | 56 | </div> |
d1992b93 | 57 | |
6a9e1d42 C |
58 | <div class="video-info-date-views-bar"> |
59 | <div class="video-info-date-views"> | |
60 | {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views | |
61 | </div> | |
62 | ||
7b272fd7 | 63 | <div *ngIf="video.likes !== 0 || video.dislikes !== 0" class="video-info-likes-dislikes-bar"> |
6a9e1d42 C |
64 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> |
65 | </div> | |
b1fa3eba | 66 | </div> |
6e07c3de | 67 | |
b1fa3eba C |
68 | <div class="video-info-channel"> |
69 | {{ video.channel.name }} | |
70 | <!-- Here will be the subscribe button --> | |
d07137b9 | 71 | </div> |
d07137b9 | 72 | |
b1fa3eba C |
73 | <div class="video-info-by"> |
74 | By {{ video.by }} | |
75 | <img [src]="getAvatarPath()" alt="Account avatar" /> | |
76 | </div> | |
09223546 | 77 | |
b1fa3eba C |
78 | <div class="video-info-description"> |
79 | <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div> | |
2de96f4d | 80 | |
cadb46d8 | 81 | <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length === 250" (click)="showMoreDescription()"> |
2de96f4d | 82 | Show more |
80958c78 C |
83 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span> |
84 | <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader> | |
2de96f4d C |
85 | </div> |
86 | ||
b1fa3eba | 87 | <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more"> |
2de96f4d | 88 | Show less |
80958c78 | 89 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span> |
2de96f4d | 90 | </div> |
db216afd | 91 | </div> |
db216afd | 92 | |
b1fa3eba C |
93 | <div class="video-attributes"> |
94 | <div class="video-attribute"> | |
95 | <span class="video-attribute-label"> | |
96 | Privacy | |
fd45e8f4 | 97 | </span> |
b1fa3eba | 98 | <span class="video-attribute-value"> |
fd45e8f4 C |
99 | {{ video.privacyLabel }} |
100 | </span> | |
101 | </div> | |
102 | ||
b1fa3eba C |
103 | <div class="video-attribute"> |
104 | <span class="video-attribute-label"> | |
105 | Category | |
09223546 | 106 | </span> |
b1fa3eba | 107 | <span class="video-attribute-value"> |
09223546 C |
108 | {{ video.categoryLabel }} |
109 | </span> | |
110 | </div> | |
111 | ||
b1fa3eba C |
112 | <div class="video-attribute"> |
113 | <span class="video-attribute-label"> | |
114 | Licence | |
09223546 | 115 | </span> |
b1fa3eba | 116 | <span class="video-attribute-value"> |
09223546 C |
117 | {{ video.licenceLabel }} |
118 | </span> | |
119 | </div> | |
120 | ||
b1fa3eba C |
121 | <div class="video-attribute"> |
122 | <span class="video-attribute-label"> | |
123 | Language | |
09223546 | 124 | </span> |
b1fa3eba | 125 | <span class="video-attribute-value"> |
09223546 C |
126 | {{ video.languageLabel }} |
127 | </span> | |
128 | </div> | |
8ce9e815 | 129 | |
b1fa3eba C |
130 | <div class="video-attribute"> |
131 | <span class="video-attribute-label"> | |
132 | Tags | |
8ce9e815 C |
133 | </span> |
134 | ||
b1fa3eba C |
135 | <span class="video-attribute-value"> |
136 | {{ getVideoTags() }} | |
137 | </span> | |
8ce9e815 | 138 | </div> |
b1fa3eba C |
139 | </div> |
140 | ||
141 | </div> | |
8ce9e815 | 142 | |
b1fa3eba | 143 | <div class="other-videos"> |
41c3dfac C |
144 | <div class="title-page title-page-single"> |
145 | Other videos | |
146 | </div> | |
147 | ||
b1fa3eba C |
148 | <div *ngFor="let video of otherVideos"> |
149 | <my-video-miniature [video]="video" [user]="user"></my-video-miniature> | |
d1992b93 C |
150 | </div> |
151 | </div> | |
152 | </div> | |
153 | ||
ad42bea3 | 154 | <ng-template [ngIf]="video !== null"> |
4f8c0eb0 | 155 | <my-video-share #videoShareModal [video]="video"></my-video-share> |
a96aed15 | 156 | <my-video-download #videoDownloadModal [video]="video"></my-video-download> |
4f8c0eb0 | 157 | <my-video-report #videoReportModal [video]="video"></my-video-report> |
ad42bea3 | 158 | </ng-template> |