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