]>
Commit | Line | Data |
---|---|---|
9a18a625 | 1 | <div class="root" [ngClass]="{ 'theater-enabled': theaterEnabled }"> |
897ec54d | 2 | <!-- We need the video container for videojs so we just hide it --> |
e2f01c47 | 3 | <div id="video-wrapper"> |
6d88de72 C |
4 | <div *ngIf="remoteServerDown" class="remote-server-down"> |
5 | Sorry, but this video is not available because the remote instance is not responding. | |
6 | <br /> | |
7 | Please try again later. | |
8 | </div> | |
e2f01c47 C |
9 | |
10 | <div id="videojs-wrapper"></div> | |
11 | ||
72675ebe C |
12 | <my-video-watch-playlist |
13 | #videoWatchPlaylist | |
14 | [video]="video" [playlist]="playlist" class="playlist" | |
15 | ></my-video-watch-playlist> | |
d1992b93 | 16 | </div> |
897ec54d | 17 | |
2b3f1919 C |
18 | <div class="row"> |
19 | <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToImport()"> | |
20 | The video is being imported, it will be available when the import is finished. | |
21 | </div> | |
516df59b | 22 | |
2b3f1919 C |
23 | <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToTranscode()"> |
24 | The video is being transcoded, it may not work properly. | |
25 | </div> | |
2186386c | 26 | |
2b3f1919 C |
27 | <div i18n class="col-md-12 alert alert-info" *ngIf="hasVideoScheduledPublication()"> |
28 | This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}. | |
29 | </div> | |
191764f3 | 30 | |
2b3f1919 C |
31 | <div class="col-md-12 alert alert-danger" *ngIf="video?.blacklisted"> |
32 | <div class="blacklisted-label" i18n>This video is blacklisted.</div> | |
33 | {{ video.blacklistedReason }} | |
34 | </div> | |
bbe0f064 C |
35 | </div> |
36 | ||
20206dfb | 37 | <!-- Video information --> |
2303a803 | 38 | <div *ngIf="video" class="margin-content video-bottom"> |
9a18a625 C |
39 | <div class="video-info"> |
40 | <div class="video-info-first-row"> | |
41 | <div> | |
7fc441cc | 42 | <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below --> |
9a18a625 | 43 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 44 | |
9a18a625 | 45 | <div i18n class="video-info-date-views"> |
3921166d | 46 | Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> <span class="views"> • {{ video.views | myNumberFormatter }} views</span> |
9a18a625 C |
47 | </div> |
48 | </div> | |
49 | ||
7fc441cc | 50 | <div class="d-flex justify-content-between flex-direction-column"> |
9a18a625 | 51 | <div class="d-none d-md-block"> |
f845c683 | 52 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 53 | </div> |
9a18a625 | 54 | |
7fc441cc RK |
55 | <div class="video-info-first-row-bottom"> |
56 | <div i18n class="d-none d-md-block video-info-date-views"> | |
3921166d | 57 | Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> <span class="views"> • {{ video.views | myNumberFormatter }} views</span> |
2d9fea16 | 58 | </div> |
2d9fea16 | 59 | |
7fc441cc RK |
60 | <div class="video-actions-rates"> |
61 | <div class="video-actions fullWidth justify-content-end"> | |
62 | <div | |
63 | [ngbPopover]="getRatePopoverText()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" | |
64 | class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'" | |
94dfca3e RK |
65 | [ngbTooltip]="tooltipLike" |
66 | placement="bottom auto" | |
7fc441cc RK |
67 | > |
68 | <my-global-icon iconName="like"></my-global-icon> | |
69 | <span *ngIf="video.likes" class="count">{{ video.likes }}</span> | |
70 | </div> | |
2d3741d6 | 71 | |
7fc441cc RK |
72 | <div |
73 | [ngbPopover]="getRatePopoverText()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" | |
74 | class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'" | |
94dfca3e RK |
75 | [ngbTooltip]="tooltipDislike" |
76 | placement="bottom auto" | |
7fc441cc RK |
77 | > |
78 | <my-global-icon iconName="dislike"></my-global-icon> | |
79 | <span *ngIf="video.dislikes" class="count">{{ video.dislikes }}</span> | |
80 | </div> | |
3adf3196 | 81 | |
208c7e92 | 82 | <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support" |
94dfca3e RK |
83 | [ngbTooltip]="tooltipSupport" |
84 | placement="bottom auto" | |
85 | > | |
3adf3196 | 86 | <my-global-icon iconName="support"></my-global-icon> |
7fc441cc RK |
87 | <span class="icon-text" i18n>Support</span> |
88 | </div> | |
3adf3196 | 89 | |
7fc441cc RK |
90 | <div (click)="showShareModal()" class="action-button" role="button"> |
91 | <my-global-icon iconName="share"></my-global-icon> | |
92 | <span class="icon-text" i18n>Share</span> | |
93 | </div> | |
3adf3196 | 94 | |
7fc441cc RK |
95 | <div |
96 | class="action-dropdown" ngbDropdown placement="top" role="button" autoClose="outside" | |
97 | *ngIf="isUserLoggedIn()" (openChange)="addContent.openChange($event)" | |
94dfca3e RK |
98 | [ngbTooltip]="tooltipSaveToPlaylist" |
99 | placement="bottom auto" | |
7fc441cc RK |
100 | > |
101 | <div class="action-button action-button-save" ngbDropdownToggle role="button"> | |
102 | <my-global-icon iconName="playlist-add"></my-global-icon> | |
103 | <span class="icon-text" i18n>Save</span> | |
104 | </div> | |
3adf3196 | 105 | |
7fc441cc RK |
106 | <div ngbDropdownMenu> |
107 | <my-video-add-to-playlist #addContent [video]="video"></my-video-add-to-playlist> | |
108 | </div> | |
109 | </div> | |
3adf3196 | 110 | |
7fc441cc | 111 | <my-video-actions-dropdown |
8ba9c205 | 112 | placement="bottom auto" buttonDirection="horizontal" [buttonStyled]="true" [video]="video" [videoCaptions]="videoCaptions" |
7fc441cc RK |
113 | (videoRemoved)="onVideoRemoved()" (modalOpened)="onModalOpened()" |
114 | ></my-video-actions-dropdown> | |
9a18a625 | 115 | </div> |
3adf3196 | 116 | |
223b24e6 | 117 | <div class="video-info-likes-dislikes-bar-outer-container"> |
2de7f588 | 118 | <div |
223b24e6 | 119 | class="video-info-likes-dislikes-bar-inner-container" |
2de7f588 RK |
120 | *ngIf="video.likes !== 0 || video.dislikes !== 0" |
121 | [ngbTooltip]="likesBarTooltipText" | |
122 | placement="bottom" | |
123 | > | |
124 | <div | |
125 | class="video-info-likes-dislikes-bar" | |
126 | > | |
0240da5c | 127 | <div class="likes-bar" [ngClass]="{ 'liked': userRating !== 'none' }" [ngStyle]="{ 'width.%': video.likesPercent }"></div> |
2de7f588 RK |
128 | </div> |
129 | </div> | |
9a18a625 | 130 | </div> |
9a18a625 | 131 | </div> |
2d3741d6 | 132 | |
9a18a625 C |
133 | <div |
134 | class="video-info-likes-dislikes-bar" | |
135 | *ngIf="video.likes !== 0 || video.dislikes !== 0" | |
136 | [ngbTooltip]="likesBarTooltipText" | |
137 | placement="bottom" | |
138 | > | |
139 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> | |
2d9fea16 | 140 | </div> |
1f788f20 | 141 | </div> |
9a18a625 | 142 | </div> |
6a9e1d42 | 143 | |
07fa4c97 | 144 | |
dd4f25ee RK |
145 | <div class="pt-3 border-top video-info-channel d-flex"> |
146 | <div class="video-info-channel-left d-flex"> | |
147 | <avatar-channel [video]="video"></avatar-channel> | |
62fca05d | 148 | |
dd4f25ee RK |
149 | <div class="video-info-channel-left-links ml-1"> |
150 | <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Go the channel page"> | |
151 | {{ video.channel.displayName }} | |
152 | </a> | |
153 | <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Go to the account page"> | |
154 | <span i18n>By {{ video.byAccount }}</span> | |
155 | </a> | |
156 | </div> | |
157 | </div> | |
63347a0f | 158 | |
41eb700f | 159 | <my-subscribe-button #subscribeButton [videoChannels]="[video.channel]" size="small"></my-subscribe-button> |
2d9fea16 | 160 | </div> |
2d9fea16 | 161 | </div> |
26b7305a | 162 | |
9a18a625 | 163 | </div> |
191764f3 | 164 | |
dd4f25ee | 165 | <div class="video-info-description"> |
b29bf61d RK |
166 | <div |
167 | class="video-info-description-html" | |
208c7e92 | 168 | [innerHTML]="videoHTMLDescription" |
b29bf61d RK |
169 | (timestampClicked)="handleTimestampClicked($event)" |
170 | timestampRouteTransformer | |
171 | ></div> | |
d07137b9 | 172 | |
9a18a625 C |
173 | <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()"> |
174 | <ng-container i18n>Show more</ng-container> | |
175 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span> | |
176 | <my-small-loader class="description-loading" [loading]="descriptionLoading"></my-small-loader> | |
1f788f20 | 177 | </div> |
09223546 | 178 | |
9a18a625 C |
179 | <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more"> |
180 | <ng-container i18n>Show less</ng-container> | |
181 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span> | |
182 | </div> | |
183 | </div> | |
adb115f5 | 184 | |
dd4f25ee | 185 | <div class="video-attributes mb-3"> |
9a18a625 C |
186 | <div class="video-attribute"> |
187 | <span i18n class="video-attribute-label">Privacy</span> | |
188 | <span class="video-attribute-value">{{ video.privacy.label }}</span> | |
189 | </div> | |
2de96f4d | 190 | |
9a18a625 C |
191 | <div *ngIf="!!video.originallyPublishedAt" class="video-attribute"> |
192 | <span i18n class="video-attribute-label">Originally published</span> | |
193 | <span class="video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span> | |
194 | </div> | |
2de96f4d | 195 | |
9a18a625 C |
196 | <div class="video-attribute"> |
197 | <span i18n class="video-attribute-label">Category</span> | |
198 | <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span> | |
199 | <a | |
200 | *ngIf="video.category.id" class="video-attribute-value" | |
201 | [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }" | |
202 | >{{ video.category.label }}</a> | |
203 | </div> | |
db216afd | 204 | |
9a18a625 C |
205 | <div class="video-attribute"> |
206 | <span i18n class="video-attribute-label">Licence</span> | |
207 | <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span> | |
208 | <a | |
209 | *ngIf="video.licence.id" class="video-attribute-value" | |
210 | [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }" | |
211 | >{{ video.licence.label }}</a> | |
212 | </div> | |
fd45e8f4 | 213 | |
9a18a625 C |
214 | <div class="video-attribute"> |
215 | <span i18n class="video-attribute-label">Language</span> | |
216 | <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span> | |
217 | <a | |
218 | *ngIf="video.language.id" class="video-attribute-value" | |
219 | [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }" | |
220 | >{{ video.language.label }}</a> | |
20206dfb | 221 | </div> |
09223546 | 222 | |
9a18a625 C |
223 | <div class="video-attribute video-attribute-tags"> |
224 | <span i18n class="video-attribute-label">Tags</span> | |
225 | <a | |
226 | *ngFor="let tag of getVideoTags()" | |
227 | class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }" | |
228 | >{{ tag }}</a> | |
229 | </div> | |
df8340b7 RK |
230 | |
231 | <div class="video-attribute"> | |
232 | <span i18n class="video-attribute-label">Duration</span> | |
233 | <span class="video-attribute-value">{{ video.duration | myVideoDurationFormatter }}</span> | |
62fca05d | 234 | </div> |
3b766e18 RK |
235 | </div> |
236 | ||
b29bf61d RK |
237 | <my-video-comments |
238 | class="border-top" | |
239 | [video]="video" | |
240 | [user]="user" | |
241 | (timestampClicked)="handleTimestampClicked($event)" | |
242 | ></my-video-comments> | |
d1992b93 | 243 | </div> |
9a18a625 | 244 | |
6aa54148 L |
245 | <my-recommended-videos |
246 | [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" | |
247 | [user]="user" | |
bee29df8 | 248 | [playlist]="playlist" |
6aa54148 L |
249 | (gotRecommendations)="onRecommendations($event)" |
250 | ></my-recommended-videos> | |
d1992b93 | 251 | </div> |
8ff3f883 | 252 | |
2b3f1919 | 253 | <div class="row privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false"> |
2b3b76ab | 254 | <div class="privacy-concerns-text"> |
2d9fea16 | 255 | <strong i18n>Friendly Reminder: </strong> |
989e526a | 256 | <ng-container i18n> |
a54991da | 257 | the sharing system used for this video implies that some technical information about your system (such as a public IP address) can be sent to other peers. |
989e526a | 258 | </ng-container> |
78f912ed | 259 | <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a> |
2b3b76ab C |
260 | </div> |
261 | ||
989e526a | 262 | <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()"> |
2b3b76ab C |
263 | OK |
264 | </div> | |
265 | </div> | |
b59f12b0 | 266 | </div> |
d1992b93 | 267 | |
5a71acd2 | 268 | <ng-container *ngIf="video !== null"> |
1f3a605e | 269 | <my-video-support #videoSupportModal [video]="video"></my-video-support> |
3a1fed11 | 270 | <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share> |
5a71acd2 | 271 | </ng-container> |