]>
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"> |
6de36768 | 4 | <video [poster]="getVideoPoster()" 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> | |
b1fa3eba | 8 | |
20206dfb C |
9 | <!-- Video information --> |
10 | <div *ngIf="video" class="margin-content video-bottom"> | |
11 | <div class="video-info"> | |
1f788f20 C |
12 | <div class="video-info-first-row"> |
13 | <div> | |
14 | <div class="video-info-name">{{ video.name }}</div> | |
d1992b93 | 15 | |
1f788f20 C |
16 | <div class="video-info-date-views"> |
17 | {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views | |
20206dfb | 18 | </div> |
d38b8281 | 19 | |
1f788f20 C |
20 | <div class="video-info-channel"> |
21 | {{ video.channel.displayName }} | |
22 | <!-- Here will be the subscribe button --> | |
20206dfb | 23 | </div> |
99cc4f49 | 24 | |
1f788f20 C |
25 | <div class="video-info-by"> |
26 | By {{ video.by }} | |
27 | <img [src]="getAvatarPath()" alt="Account avatar" /> | |
b1fa3eba | 28 | </div> |
1f788f20 | 29 | </div> |
b1fa3eba | 30 | |
1f788f20 C |
31 | <div class="video-actions-rates"> |
32 | <div class="video-actions"> | |
33 | <div | |
34 | *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" | |
35 | class="action-button action-button-like" | |
36 | > | |
37 | <span class="icon icon-like" title="Like this video" ></span> | |
20206dfb C |
38 | </div> |
39 | ||
1f788f20 C |
40 | <div |
41 | *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" | |
42 | class="action-button action-button-dislike" | |
43 | > | |
44 | <span class="icon icon-dislike" title="Dislike this video"></span> | |
45 | </div> | |
6a9e1d42 | 46 | |
3bf1ec2e | 47 | <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support"> |
07fa4c97 C |
48 | <span class="icon icon-support"></span> |
49 | <span class="icon-text">Support</span> | |
50 | </div> | |
51 | ||
196b7790 | 52 | <div (click)="showShareModal()" class="action-button action-button-share"> |
1f788f20 | 53 | <span class="icon icon-share"></span> |
07fa4c97 | 54 | <span class="icon-text">Share</span> |
1f788f20 | 55 | </div> |
6e07c3de | 56 | |
1f788f20 C |
57 | <div class="action-more" dropdown dropup="true" placement="right"> |
58 | <div class="action-button" dropdownToggle> | |
59 | <span class="icon icon-more"></span> | |
60 | </div> | |
61 | ||
62 | <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button"> | |
63 | <li role="menuitem"> | |
64 | <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)"> | |
65 | <span class="icon icon-download"></span> Download | |
66 | </a> | |
67 | </li> | |
68 | ||
69 | <li *ngIf="isUserLoggedIn()" role="menuitem"> | |
70 | <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)"> | |
71 | <span class="icon icon-alert"></span> Report | |
72 | </a> | |
73 | </li> | |
74 | ||
75 | <li *ngIf="isVideoBlacklistable()" role="menuitem"> | |
76 | <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)"> | |
77 | <span class="icon icon-blacklist"></span> Blacklist | |
78 | </a> | |
79 | </li> | |
80 | ||
81 | <li *ngIf="isVideoUpdatable()" role="menuitem"> | |
82 | <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]"> | |
83 | <span class="icon icon-edit"></span> Update | |
84 | </a> | |
85 | </li> | |
86 | ||
87 | <li *ngIf="isVideoRemovable()" role="menuitem"> | |
88 | <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)"> | |
89 | <span class="icon icon-blacklist"></span> Delete | |
90 | </a> | |
91 | </li> | |
92 | </ul> | |
93 | </div> | |
94 | </div> | |
d07137b9 | 95 | |
1f788f20 C |
96 | <div |
97 | class="video-info-likes-dislikes-bar" | |
98 | *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText"> | |
99 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> | |
100 | </div> | |
101 | </div> | |
20206dfb | 102 | </div> |
09223546 | 103 | |
20206dfb C |
104 | <div class="video-info-description"> |
105 | <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div> | |
2de96f4d | 106 | |
4001b3bc | 107 | <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()"> |
20206dfb C |
108 | Show more |
109 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span> | |
110 | <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader> | |
111 | </div> | |
2de96f4d | 112 | |
20206dfb C |
113 | <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more"> |
114 | Show less | |
115 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span> | |
116 | </div> | |
2de96f4d | 117 | </div> |
db216afd | 118 | |
20206dfb C |
119 | <div class="video-attributes"> |
120 | <div class="video-attribute"> | |
121 | <span class="video-attribute-label"> | |
122 | Privacy | |
123 | </span> | |
124 | <span class="video-attribute-value"> | |
09700934 | 125 | {{ video.privacy.label }} |
20206dfb C |
126 | </span> |
127 | </div> | |
fd45e8f4 | 128 | |
20206dfb C |
129 | <div class="video-attribute"> |
130 | <span class="video-attribute-label"> | |
131 | Category | |
132 | </span> | |
133 | <span class="video-attribute-value"> | |
09700934 | 134 | {{ video.category.label }} |
20206dfb C |
135 | </span> |
136 | </div> | |
09223546 | 137 | |
20206dfb C |
138 | <div class="video-attribute"> |
139 | <span class="video-attribute-label"> | |
140 | Licence | |
141 | </span> | |
142 | <span class="video-attribute-value"> | |
09700934 | 143 | {{ video.licence.label }} |
20206dfb C |
144 | </span> |
145 | </div> | |
09223546 | 146 | |
20206dfb C |
147 | <div class="video-attribute"> |
148 | <span class="video-attribute-label"> | |
149 | Language | |
150 | </span> | |
151 | <span class="video-attribute-value"> | |
09700934 | 152 | {{ video.language.label }} |
20206dfb C |
153 | </span> |
154 | </div> | |
8ce9e815 | 155 | |
20206dfb C |
156 | <div class="video-attribute"> |
157 | <span class="video-attribute-label"> | |
158 | Tags | |
159 | </span> | |
8ce9e815 | 160 | |
20206dfb C |
161 | <span class="video-attribute-value"> |
162 | {{ getVideoTags() }} | |
163 | </span> | |
164 | </div> | |
8ce9e815 | 165 | </div> |
b1fa3eba | 166 | |
4635f59d | 167 | <my-video-comments [video]="video" [user]="user"></my-video-comments> |
41c3dfac C |
168 | </div> |
169 | ||
20206dfb C |
170 | <div class="other-videos"> |
171 | <div class="title-page title-page-single"> | |
172 | Other videos | |
173 | </div> | |
174 | ||
57a49263 | 175 | <div *ngFor="let video of otherVideosDisplayed"> |
20206dfb C |
176 | <my-video-miniature [video]="video" [user]="user"></my-video-miniature> |
177 | </div> | |
d1992b93 C |
178 | </div> |
179 | </div> | |
2b3b76ab C |
180 | |
181 | ||
182 | <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false"> | |
183 | <strong>Friendly Reminder:</strong> | |
184 | <div class="privacy-concerns-text"> | |
185 | 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. | |
632c5e36 | 186 | <a title="Get more information" target="_blank" rel="noopener noreferrer" href="/about#p2p-privacy">More information</a> |
2b3b76ab C |
187 | </div> |
188 | ||
189 | <div class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()"> | |
190 | OK | |
191 | </div> | |
192 | </div> | |
d1992b93 C |
193 | </div> |
194 | ||
ad42bea3 | 195 | <ng-template [ngIf]="video !== null"> |
07fa4c97 | 196 | <my-video-support #videoSupportModal [video]="video"></my-video-support> |
4f8c0eb0 | 197 | <my-video-share #videoShareModal [video]="video"></my-video-share> |
a96aed15 | 198 | <my-video-download #videoDownloadModal [video]="video"></my-video-download> |
4f8c0eb0 | 199 | <my-video-report #videoReportModal [video]="video"></my-video-report> |
ad42bea3 | 200 | </ng-template> |