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