]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/video-watch.component.html
Fix wait transcoding checkbox display
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / video-watch.component.html
CommitLineData
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
d142c7b9
C
14 [playlist]="playlist" class="playlist"
15 (videoFound)="onPlaylistVideoFound($event)"
72675ebe 16 ></my-video-watch-playlist>
d1992b93 17 </div>
897ec54d 18
2b3f1919
C
19 <div class="row">
20 <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToImport()">
21 The video is being imported, it will be available when the import is finished.
22 </div>
516df59b 23
2b3f1919
C
24 <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToTranscode()">
25 The video is being transcoded, it may not work properly.
26 </div>
2186386c 27
2b3f1919
C
28 <div i18n class="col-md-12 alert alert-info" *ngIf="hasVideoScheduledPublication()">
29 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}.
30 </div>
191764f3 31
a5cf76af
C
32 <div i18n class="col-md-12 alert alert-info" *ngIf="isWaitingForLive()">
33 This live has not started yet.
34 </div>
35
36 <div i18n class="col-md-12 alert alert-info" *ngIf="isLiveEnded()">
5c0904fc 37 This live has ended.
a5cf76af
C
38 </div>
39
2b3f1919 40 <div class="col-md-12 alert alert-danger" *ngIf="video?.blacklisted">
5baee5fc
RK
41 <div class="blocked-label" i18n>This video is blocked.</div>
42 {{ video.blockedReason }}
2b3f1919 43 </div>
bbe0f064
C
44 </div>
45
20206dfb 46 <!-- Video information -->
2303a803 47 <div *ngIf="video" class="margin-content video-bottom">
9a18a625
C
48 <div class="video-info">
49 <div class="video-info-first-row">
50 <div>
7fc441cc 51 <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
9a18a625 52 <h1 class="video-info-name">{{ video.name }}</h1>
7fc441cc 53
5c0904fc
C
54 <div class="video-info-date-views">
55 <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container>
5cac83a7
C
56
57 <my-video-views-counter [video]="video"></my-video-views-counter>
9a18a625
C
58 </div>
59 </div>
60
7fc441cc 61 <div class="d-flex justify-content-between flex-direction-column">
9a18a625 62 <div class="d-none d-md-block">
f845c683 63 <h1 class="video-info-name">{{ video.name }}</h1>
7fc441cc 64 </div>
9a18a625 65
7fc441cc 66 <div class="video-info-first-row-bottom">
5c0904fc
C
67 <div class="d-none d-md-block video-info-date-views">
68 <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container>
dc1f314e
C
69
70 <my-video-views-counter [video]="video"></my-video-views-counter>
2d9fea16 71 </div>
2d9fea16 72
7fc441cc 73 <div class="video-actions-rates">
214ff6fa 74 <ng-template #ratePopoverText>
75 <span [innerHTML]="getRatePopoverText()"></span>
76 </ng-template>
77
7fc441cc 78 <div class="video-actions fullWidth justify-content-end">
adcf9212 79 <button
214ff6fa 80 [ngbPopover]="getRatePopoverText() && ratePopoverText" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" (keyup.enter)="setLike()"
adcf9212 81 class="action-button action-button-like" [attr.aria-pressed]="userRating === 'like'" [attr.aria-label]="tooltipLike"
94dfca3e
RK
82 [ngbTooltip]="tooltipLike"
83 placement="bottom auto"
7fc441cc
RK
84 >
85 <my-global-icon iconName="like"></my-global-icon>
86 <span *ngIf="video.likes" class="count">{{ video.likes }}</span>
adcf9212 87 </button>
2d3741d6 88
adcf9212 89 <button
214ff6fa 90 [ngbPopover]="getRatePopoverText() && ratePopoverText" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" (keyup.enter)="setDislike()"
adcf9212 91 class="action-button action-button-dislike" [attr.aria-pressed]="userRating === 'dislike'" [attr.aria-label]="tooltipDislike"
94dfca3e
RK
92 [ngbTooltip]="tooltipDislike"
93 placement="bottom auto"
7fc441cc
RK
94 >
95 <my-global-icon iconName="dislike"></my-global-icon>
96 <span *ngIf="video.dislikes" class="count">{{ video.dislikes }}</span>
adcf9212 97 </button>
3adf3196 98
adcf9212 99 <button *ngIf="video.support" (click)="showSupportModal()" (keyup.enter)="showSupportModal()" class="action-button action-button-support" [attr.aria-label]="tooltipSupport"
94dfca3e
RK
100 [ngbTooltip]="tooltipSupport"
101 placement="bottom auto"
102 >
adcf9212 103 <my-global-icon iconName="support" aria-hidden="true"></my-global-icon>
14571f19 104 <span class="icon-text" i18n>SUPPORT</span>
adcf9212 105 </button>
3adf3196 106
adcf9212 107 <button (click)="showShareModal()" (keyup.enter)="showShareModal()" class="action-button">
6ad971d5 108 <my-global-icon iconName="share" aria-hidden="true"></my-global-icon>
14571f19 109 <span class="icon-text" i18n>SHARE</span>
adcf9212 110 </button>
3adf3196 111
7fc441cc
RK
112 <div
113 class="action-dropdown" ngbDropdown placement="top" role="button" autoClose="outside"
114 *ngIf="isUserLoggedIn()" (openChange)="addContent.openChange($event)"
94dfca3e
RK
115 [ngbTooltip]="tooltipSaveToPlaylist"
116 placement="bottom auto"
7fc441cc 117 >
adcf9212 118 <button class="action-button action-button-save" ngbDropdownToggle>
6ad971d5 119 <my-global-icon iconName="playlist-add" aria-hidden="true"></my-global-icon>
14571f19 120 <span class="icon-text" i18n>SAVE</span>
adcf9212 121 </button>
3adf3196 122
7fc441cc
RK
123 <div ngbDropdownMenu>
124 <my-video-add-to-playlist #addContent [video]="video"></my-video-add-to-playlist>
125 </div>
126 </div>
3adf3196 127
a5cf76af 128 <ng-container *ngIf="!isUserLoggedIn() && !isLive()">
6863f814
RK
129 <button
130 *ngIf="isVideoDownloadable()" class="action-button action-button-save"
131 (click)="showDownloadModal()" (keydown.enter)="showDownloadModal()"
132 >
133 <my-global-icon iconName="download" aria-hidden="true"></my-global-icon>
134 <span class="icon-text d-none d-sm-inline" i18n>DOWNLOAD</span>
135 </button>
82f443de 136
6863f814
RK
137 <my-video-download #videoDownloadModal></my-video-download>
138 </ng-container>
82f443de 139
6863f814
RK
140 <ng-container *ngIf="isUserLoggedIn()">
141 <my-video-actions-dropdown
142 placement="bottom auto" buttonDirection="horizontal" [buttonStyled]="true" [video]="video" [videoCaptions]="videoCaptions"
f8c00564 143 [displayOptions]="videoActionsOptions" (videoRemoved)="onVideoRemoved()" (modalOpened)="onModalOpened()"
6863f814
RK
144 ></my-video-actions-dropdown>
145 </ng-container>
9a18a625 146 </div>
3adf3196 147
223b24e6 148 <div class="video-info-likes-dislikes-bar-outer-container">
2de7f588 149 <div
223b24e6 150 class="video-info-likes-dislikes-bar-inner-container"
2de7f588
RK
151 *ngIf="video.likes !== 0 || video.dislikes !== 0"
152 [ngbTooltip]="likesBarTooltipText"
153 placement="bottom"
154 >
155 <div
156 class="video-info-likes-dislikes-bar"
157 >
0240da5c 158 <div class="likes-bar" [ngClass]="{ 'liked': userRating !== 'none' }" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
2de7f588
RK
159 </div>
160 </div>
9a18a625 161 </div>
9a18a625 162 </div>
2d3741d6 163
9a18a625
C
164 <div
165 class="video-info-likes-dislikes-bar"
166 *ngIf="video.likes !== 0 || video.dislikes !== 0"
167 [ngbTooltip]="likesBarTooltipText"
168 placement="bottom"
169 >
170 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
2d9fea16 171 </div>
1f788f20 172 </div>
9a18a625 173 </div>
6a9e1d42 174
07fa4c97 175
dd4f25ee
RK
176 <div class="pt-3 border-top video-info-channel d-flex">
177 <div class="video-info-channel-left d-flex">
69524f6e 178 <my-video-avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></my-video-avatar-channel>
62fca05d 179
dd4f25ee 180 <div class="video-info-channel-left-links ml-1">
b40a2193
K
181 <ng-container *ngIf="!isChannelDisplayNameGeneric()">
182 <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Channel page">
183 {{ video.channel.displayName }}
184 </a>
185 <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Account page">
186 <span i18n>By {{ video.byAccount }}</span>
187 </a>
188 </ng-container>
189
190 <ng-container *ngIf="isChannelDisplayNameGeneric()">
191 <a [routerLink]="[ '/accounts', video.byAccount ]" class="single-link" i18n-title title="Account page">
192 <span i18n>{{ video.byAccount }}</span>
193 </a>
194 </ng-container>
dd4f25ee
RK
195 </div>
196 </div>
63347a0f 197
41eb700f 198 <my-subscribe-button #subscribeButton [videoChannels]="[video.channel]" size="small"></my-subscribe-button>
2d9fea16 199 </div>
2d9fea16 200 </div>
26b7305a 201
9a18a625 202 </div>
191764f3 203
dd4f25ee 204 <div class="video-info-description">
b29bf61d
RK
205 <div
206 class="video-info-description-html"
208c7e92 207 [innerHTML]="videoHTMLDescription"
b29bf61d
RK
208 (timestampClicked)="handleTimestampClicked($event)"
209 timestampRouteTransformer
210 ></div>
d07137b9 211
9a18a625
C
212 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
213 <ng-container i18n>Show more</ng-container>
214 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
215 <my-small-loader class="description-loading" [loading]="descriptionLoading"></my-small-loader>
1f788f20 216 </div>
09223546 217
9a18a625
C
218 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
219 <ng-container i18n>Show less</ng-container>
220 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
221 </div>
222 </div>
adb115f5 223
dd4f25ee 224 <div class="video-attributes mb-3">
9a18a625
C
225 <div class="video-attribute">
226 <span i18n class="video-attribute-label">Privacy</span>
227 <span class="video-attribute-value">{{ video.privacy.label }}</span>
228 </div>
2de96f4d 229
c910f667
C
230 <div *ngIf="video.isLocal === false" class="video-attribute">
231 <span i18n class="video-attribute-label">Origin instance</span>
232 <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="video.originInstanceUrl">{{ video.originInstanceHost }}</a>
233 </div>
234
9a18a625
C
235 <div *ngIf="!!video.originallyPublishedAt" class="video-attribute">
236 <span i18n class="video-attribute-label">Originally published</span>
237 <span class="video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span>
238 </div>
2de96f4d 239
9a18a625
C
240 <div class="video-attribute">
241 <span i18n class="video-attribute-label">Category</span>
242 <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span>
243 <a
244 *ngIf="video.category.id" class="video-attribute-value"
245 [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }"
246 >{{ video.category.label }}</a>
247 </div>
db216afd 248
9a18a625
C
249 <div class="video-attribute">
250 <span i18n class="video-attribute-label">Licence</span>
251 <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span>
252 <a
253 *ngIf="video.licence.id" class="video-attribute-value"
254 [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }"
255 >{{ video.licence.label }}</a>
256 </div>
fd45e8f4 257
9a18a625
C
258 <div class="video-attribute">
259 <span i18n class="video-attribute-label">Language</span>
260 <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span>
261 <a
262 *ngIf="video.language.id" class="video-attribute-value"
263 [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }"
264 >{{ video.language.label }}</a>
20206dfb 265 </div>
09223546 266
9a18a625
C
267 <div class="video-attribute video-attribute-tags">
268 <span i18n class="video-attribute-label">Tags</span>
269 <a
270 *ngFor="let tag of getVideoTags()"
271 class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }"
272 >{{ tag }}</a>
273 </div>
df8340b7 274
da0310f8 275 <div class="video-attribute" *ngIf="!video.isLive">
df8340b7 276 <span i18n class="video-attribute-label">Duration</span>
b5b68755 277 <span class="video-attribute-value">{{ video.duration | myDurationFormatter }}</span>
62fca05d 278 </div>
3b766e18
RK
279 </div>
280
b29bf61d
RK
281 <my-video-comments
282 class="border-top"
283 [video]="video"
284 [user]="user"
285 (timestampClicked)="handleTimestampClicked($event)"
286 ></my-video-comments>
d1992b93 287 </div>
9a18a625 288
6aa54148 289 <my-recommended-videos
5c20a455 290 [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }"
5c20a455
C
291 [playlist]="playlist"
292 (gotRecommendations)="onRecommendations($event)"
6aa54148 293 ></my-recommended-videos>
d1992b93 294 </div>
8ff3f883 295
2b3f1919 296 <div class="row privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
2b3b76ab 297 <div class="privacy-concerns-text">
52e3beb9
RK
298 <span class="mr-2">
299 <strong i18n>Friendly Reminder: </strong>
300 <ng-container i18n>
301 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.
302 </ng-container>
d3217560 303 </span>
5411da31 304 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube#privacy">More information</a>
2b3b76ab
C
305 </div>
306
d3217560 307 <div i18n class="privacy-concerns-button privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
52e3beb9 308 OK
2b3b76ab
C
309 </div>
310 </div>
b59f12b0 311</div>
d1992b93 312
5a71acd2 313<ng-container *ngIf="video !== null">
1f3a605e 314 <my-video-support #videoSupportModal [video]="video"></my-video-support>
3a1fed11 315 <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share>
5a71acd2 316</ng-container>