]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Fix privacy warning position on mobile
[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
bce47964 12 <div *ngIf="playlist && video" class="playlist" myInfiniteScroller [autoInit]="true" [onItself]="true" (nearOfBottom)="onPlaylistVideosNearOfBottom()">
e2f01c47
C
13 <div class="playlist-info">
14 <div class="playlist-display-name">
15 {{ playlist.displayName }}
16
17 <span *ngIf="isUnlistedPlaylist()" class="badge badge-warning" i18n>Unlisted</span>
18 <span *ngIf="isPrivatePlaylist()" class="badge badge-danger" i18n>Private</span>
19 <span *ngIf="isPublicPlaylist()" class="badge badge-info" i18n>Public</span>
20 </div>
21
22 <div class="playlist-by-index">
23 <div class="playlist-by">{{ playlist.ownerBy }}</div>
24 <div class="playlist-index">
c4710631 25 <span>{{ currentPlaylistPosition }}</span><span>{{ playlistPagination.totalItems }}</span>
e2f01c47
C
26 </div>
27 </div>
28 </div>
29
bce47964 30 <div *ngFor="let playlistVideo of playlistVideos">
e2f01c47
C
31 <my-video-playlist-element-miniature
32 [video]="playlistVideo" [playlist]="playlist" [owned]="isPlaylistOwned()" (elementRemoved)="onElementRemoved($event)"
bce47964 33 [playing]="currentPlaylistPosition === playlistVideo.playlistElement.position" [accountLink]="false" [position]="playlistVideo.playlistElement.position"
e2f01c47
C
34 ></my-video-playlist-element-miniature>
35 </div>
36 </div>
d1992b93 37 </div>
897ec54d 38
2b3f1919
C
39 <div class="row">
40 <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToImport()">
41 The video is being imported, it will be available when the import is finished.
42 </div>
516df59b 43
2b3f1919
C
44 <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToTranscode()">
45 The video is being transcoded, it may not work properly.
46 </div>
2186386c 47
2b3f1919
C
48 <div i18n class="col-md-12 alert alert-info" *ngIf="hasVideoScheduledPublication()">
49 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}.
50 </div>
191764f3 51
2b3f1919
C
52 <div i18n class="col-md-12 alert alert-info" *ngIf="noPlaylistVideos">
53 This playlist does not have videos.
54 </div>
e2f01c47 55
2b3f1919
C
56 <div class="col-md-12 alert alert-danger" *ngIf="video?.blacklisted">
57 <div class="blacklisted-label" i18n>This video is blacklisted.</div>
58 {{ video.blacklistedReason }}
59 </div>
bbe0f064
C
60 </div>
61
20206dfb 62 <!-- Video information -->
2303a803 63 <div *ngIf="video" class="margin-content video-bottom">
9a18a625
C
64 <div class="video-info">
65 <div class="video-info-first-row">
66 <div>
67 <div class="d-block d-md-none"> <!-- only shown on medium devices, has its conterpart for larger viewports below -->
68 <h1 class="video-info-name">{{ video.name }}</h1>
69 <div i18n class="video-info-date-views">
70 Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
71 </div>
72 </div>
73
74 <div class="d-flex justify-content-between align-items-md-end">
75 <div class="d-none d-md-block">
f845c683 76 <h1 class="video-info-name">{{ video.name }}</h1>
9a18a625 77
2d9fea16
RK
78 <div i18n class="video-info-date-views">
79 Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
80 </div>
20206dfb 81 </div>
2d3741d6 82
9a18a625
C
83 <div class="video-actions-rates">
84 <div class="video-actions fullWidth justify-content-end">
85 <div
86 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
87 class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'"
88 i18n-title title="Like this video"
89 >
90 <my-global-icon iconName="like"></my-global-icon>
91 </div>
2d9fea16 92
9a18a625
C
93 <div
94 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
95 class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'"
96 i18n-title title="Dislike this video"
97 >
98 <my-global-icon iconName="dislike"></my-global-icon>
2d9fea16 99 </div>
2d9fea16 100
9a18a625
C
101 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button">
102 <my-global-icon iconName="heart"></my-global-icon>
103 <span class="icon-text" i18n>Support</span>
104 </div>
2d3741d6 105
9a18a625
C
106 <div (click)="showShareModal()" class="action-button" role="button">
107 <my-global-icon iconName="share"></my-global-icon>
108 <span class="icon-text" i18n>Share</span>
109 </div>
2d3741d6 110
9a18a625
C
111 <div
112 class="action-dropdown" ngbDropdown placement="top" role="button" autoClose="outside"
113 *ngIf="isUserLoggedIn()" (openChange)="addContent.openChange($event)"
114 >
115 <div class="action-button action-button-save" ngbDropdownToggle role="button">
116 <my-global-icon iconName="playlist-add"></my-global-icon>
117 <span class="icon-text" i18n>Save</span>
2d9fea16 118 </div>
2d3741d6 119
9a18a625
C
120 <div ngbDropdownMenu>
121 <my-video-add-to-playlist #addContent [video]="video"></my-video-add-to-playlist>
2d9fea16 122 </div>
9a18a625 123 </div>
2d3741d6 124
3a0fb65c
C
125 <my-video-actions-dropdown
126 placement="top" buttonDirection="horizontal" [buttonStyled]="true" [video]="video" (videoRemoved)="onVideoRemoved()"
127 ></my-video-actions-dropdown>
9a18a625 128 </div>
2d3741d6 129
9a18a625
C
130 <div
131 class="video-info-likes-dislikes-bar"
132 *ngIf="video.likes !== 0 || video.dislikes !== 0"
133 [ngbTooltip]="likesBarTooltipText"
134 placement="bottom"
135 >
136 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
2d9fea16 137 </div>
1f788f20 138 </div>
9a18a625 139 </div>
6a9e1d42 140
07fa4c97 141
9a18a625
C
142 <div class="pt-3 border-top video-info-channel">
143 <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Go the channel page">
144 {{ video.channel.displayName }}
1f788f20 145
9a18a625
C
146 <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" />
147 </a>
63347a0f 148
9a18a625 149 <my-subscribe-button #subscribeButton [videoChannel]="video.channel" size="small"></my-subscribe-button>
2d9fea16 150 </div>
63347a0f 151
9a18a625
C
152 <div class="video-info-by">
153 <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Go to the account page">
154 <span i18n>By {{ video.byAccount }}</span>
155 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
156 </a>
157 </div>
2d9fea16 158 </div>
26b7305a 159
9a18a625 160 </div>
191764f3 161
9a18a625
C
162 <div class="video-info-description">
163 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
d07137b9 164
9a18a625
C
165 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
166 <ng-container i18n>Show more</ng-container>
167 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
168 <my-small-loader class="description-loading" [loading]="descriptionLoading"></my-small-loader>
1f788f20 169 </div>
09223546 170
9a18a625
C
171 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
172 <ng-container i18n>Show less</ng-container>
173 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
174 </div>
175 </div>
adb115f5 176
9a18a625
C
177 <div class="video-attributes">
178 <div class="video-attribute">
179 <span i18n class="video-attribute-label">Privacy</span>
180 <span class="video-attribute-value">{{ video.privacy.label }}</span>
181 </div>
2de96f4d 182
9a18a625
C
183 <div *ngIf="!!video.originallyPublishedAt" class="video-attribute">
184 <span i18n class="video-attribute-label">Originally published</span>
185 <span class="video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span>
186 </div>
2de96f4d 187
9a18a625
C
188 <div class="video-attribute">
189 <span i18n class="video-attribute-label">Category</span>
190 <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span>
191 <a
192 *ngIf="video.category.id" class="video-attribute-value"
193 [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }"
194 >{{ video.category.label }}</a>
195 </div>
db216afd 196
9a18a625
C
197 <div class="video-attribute">
198 <span i18n class="video-attribute-label">Licence</span>
199 <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span>
200 <a
201 *ngIf="video.licence.id" class="video-attribute-value"
202 [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }"
203 >{{ video.licence.label }}</a>
204 </div>
fd45e8f4 205
9a18a625
C
206 <div class="video-attribute">
207 <span i18n class="video-attribute-label">Language</span>
208 <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span>
209 <a
210 *ngIf="video.language.id" class="video-attribute-value"
211 [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }"
212 >{{ video.language.label }}</a>
20206dfb 213 </div>
09223546 214
9a18a625
C
215 <div class="video-attribute video-attribute-tags">
216 <span i18n class="video-attribute-label">Tags</span>
217 <a
218 *ngFor="let tag of getVideoTags()"
219 class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }"
220 >{{ tag }}</a>
221 </div>
3b766e18
RK
222 </div>
223
9a18a625 224 <my-video-comments [video]="video" [user]="user"></my-video-comments>
d1992b93 225 </div>
9a18a625
C
226
227 <my-recommended-videos [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" [user]="user"></my-recommended-videos>
d1992b93 228 </div>
8ff3f883 229
2b3f1919 230 <div class="row privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
2b3b76ab 231 <div class="privacy-concerns-text">
2d9fea16 232 <strong i18n>Friendly Reminder: </strong>
989e526a 233 <ng-container i18n>
a54991da 234 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 235 </ng-container>
78f912ed 236 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a>
2b3b76ab
C
237 </div>
238
989e526a 239 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
2b3b76ab
C
240 OK
241 </div>
242 </div>
d1992b93 243
ad42bea3 244<ng-template [ngIf]="video !== null">
07fa4c97 245 <my-video-support #videoSupportModal [video]="video"></my-video-support>
4f8c0eb0 246 <my-video-share #videoShareModal [video]="video"></my-video-share>
ad42bea3 247</ng-template>