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