]>
Commit | Line | Data |
---|---|---|
191764f3 | 1 | <div class="root-row row"> |
897ec54d | 2 | <!-- We need the video container for videojs so we just hide it --> |
4a7591e1 | 3 | <div id="video-element-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> | |
d1992b93 | 9 | </div> |
897ec54d | 10 | |
516df59b C |
11 | <div i18n class="alert alert-warning" *ngIf="isVideoToImport()"> |
12 | The video is being imported, it will be available when the import is finished. | |
13 | </div> | |
14 | ||
bbe0f064 | 15 | <div i18n class="alert alert-warning" *ngIf="isVideoToTranscode()"> |
2186386c C |
16 | The video is being transcoded, it may not work properly. |
17 | </div> | |
18 | ||
bbe0f064 | 19 | <div i18n class="alert alert-info" *ngIf="hasVideoScheduledPublication()"> |
191764f3 C |
20 | This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}. |
21 | </div> | |
22 | ||
23 | <div class="alert alert-danger" *ngIf="video?.blacklisted"> | |
24 | <div class="blacklisted-label" i18n>This video is blacklisted.</div> | |
25 | {{ video.blacklistedReason }} | |
bbe0f064 C |
26 | </div> |
27 | ||
20206dfb | 28 | <!-- Video information --> |
2303a803 | 29 | <div *ngIf="video" class="margin-content video-bottom"> |
2d9fea16 | 30 | <div class="row fullWidth"> |
3b766e18 | 31 | <div class="col-12 col-lg-auto video-info"> |
2d9fea16 RK |
32 | <div class="video-info-first-row"> |
33 | <div> | |
34 | <div class="d-block d-sm-none"> <!-- only shown on small devices, has its conterpart for larger viewports below --> | |
f845c683 | 35 | <h1 class="video-info-name">{{ video.name }}</h1> |
2d9fea16 RK |
36 | <div i18n class="video-info-date-views"> |
37 | Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views | |
38 | </div> | |
20206dfb | 39 | </div> |
2d3741d6 | 40 | |
2d9fea16 RK |
41 | <div class="d-flex justify-content-between align-items-sm-end"> |
42 | <div class="d-none d-sm-block"> | |
f845c683 | 43 | <h1 class="video-info-name">{{ video.name }}</h1> |
2d9fea16 RK |
44 | |
45 | <div i18n class="video-info-date-views"> | |
46 | Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views | |
47 | </div> | |
2d3741d6 | 48 | </div> |
2d9fea16 RK |
49 | |
50 | <div class="video-actions-rates"> | |
51 | <div class="video-actions fullWidth justify-content-end"> | |
52 | <div | |
53 | *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" | |
54 | class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'" | |
457bb213 | 55 | i18n-title title="Like this video" |
2d9fea16 | 56 | > |
457bb213 | 57 | <my-global-icon iconName="like"></my-global-icon> |
2d9fea16 | 58 | </div> |
2d3741d6 | 59 | |
2d9fea16 RK |
60 | <div |
61 | *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" | |
62 | class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'" | |
457bb213 | 63 | i18n-title title="Dislike this video" |
2d9fea16 | 64 | > |
457bb213 | 65 | <my-global-icon iconName="dislike"></my-global-icon> |
2d9fea16 | 66 | </div> |
2d3741d6 | 67 | |
2d9fea16 | 68 | <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support"> |
457bb213 | 69 | <my-global-icon iconName="heart"></my-global-icon> |
2d9fea16 RK |
70 | <span class="icon-text" i18n>Support</span> |
71 | </div> | |
2d3741d6 | 72 | |
2d9fea16 | 73 | <div (click)="showShareModal()" class="action-button action-button-share" role="button"> |
457bb213 | 74 | <my-global-icon iconName="share"></my-global-icon> |
2d9fea16 RK |
75 | <span class="icon-text" i18n>Share</span> |
76 | </div> | |
2d3741d6 | 77 | |
2d9fea16 RK |
78 | <div class="action-more" ngbDropdown placement="top" role="button"> |
79 | <div class="action-button" ngbDropdownToggle role="button"> | |
457bb213 | 80 | <my-global-icon class="more-icon" iconName="more"></my-global-icon> |
2d9fea16 | 81 | </div> |
2d3741d6 | 82 | |
2d9fea16 | 83 | <div ngbDropdownMenu> |
156c50af | 84 | <a *ngIf="isVideoDownloadable()" class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)"> |
457bb213 | 85 | <my-global-icon iconName="download"></my-global-icon> <ng-container i18n>Download</ng-container> |
2d9fea16 | 86 | </a> |
2d3741d6 | 87 | |
2d9fea16 | 88 | <a *ngIf="isUserLoggedIn()" class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)"> |
457bb213 | 89 | <my-global-icon iconName="alert"></my-global-icon> <ng-container i18n>Report</ng-container> |
2d9fea16 | 90 | </a> |
2d3741d6 | 91 | |
2d9fea16 | 92 | <a *ngIf="isVideoUpdatable()" class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]"> |
457bb213 | 93 | <my-global-icon iconName="edit"></my-global-icon> <ng-container i18n>Update</ng-container> |
2d9fea16 | 94 | </a> |
2d3741d6 | 95 | |
2d9fea16 | 96 | <a *ngIf="isVideoBlacklistable()" class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="showBlacklistModal($event)"> |
457bb213 | 97 | <my-global-icon iconName="no"></my-global-icon> <ng-container i18n>Blacklist</ng-container> |
2d9fea16 | 98 | </a> |
2d3741d6 | 99 | |
2d9fea16 | 100 | <a *ngIf="isVideoUnblacklistable()" class="dropdown-item" i18n-title title="Unblacklist this video" href="#" (click)="unblacklistVideo($event)"> |
457bb213 | 101 | <my-global-icon iconName="undo"></my-global-icon> <ng-container i18n>Unblacklist</ng-container> |
2d9fea16 | 102 | </a> |
2d3741d6 | 103 | |
2d9fea16 | 104 | <a *ngIf="isVideoRemovable()" class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)"> |
457bb213 | 105 | <my-global-icon iconName="delete"></my-global-icon> <ng-container i18n>Delete</ng-container> |
2d9fea16 RK |
106 | </a> |
107 | </div> | |
108 | </div> | |
109 | </div> | |
2d3741d6 | 110 | |
2d9fea16 RK |
111 | <div |
112 | class="video-info-likes-dislikes-bar" | |
113 | *ngIf="video.likes !== 0 || video.dislikes !== 0" | |
8ff3f883 | 114 | [ngbTooltip]="likesBarTooltipText" |
2d9fea16 | 115 | placement="bottom" |
8ff3f883 | 116 | > |
2d9fea16 RK |
117 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> |
118 | </div> | |
119 | </div> | |
1f788f20 | 120 | </div> |
6a9e1d42 | 121 | |
07fa4c97 | 122 | |
2d9fea16 | 123 | <div class="pt-3 border-top video-info-channel"> |
21131ac1 | 124 | <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Go the channel page"> |
2d9fea16 | 125 | {{ video.channel.displayName }} |
6e07c3de | 126 | |
2d9fea16 RK |
127 | <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" /> |
128 | </a> | |
1f788f20 | 129 | |
660d11e9 | 130 | <my-subscribe-button #subscribeButton [videoChannel]="video.channel" size="small"></my-subscribe-button> |
2d9fea16 | 131 | </div> |
63347a0f | 132 | |
2d9fea16 RK |
133 | <div class="video-info-by"> |
134 | <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Go to the account page"> | |
135 | <span i18n>By {{ video.byAccount }}</span> | |
136 | <img [src]="video.accountAvatarUrl" alt="Account avatar" /> | |
137 | </a> | |
2d9fea16 RK |
138 | </div> |
139 | </div> | |
63347a0f | 140 | |
2d9fea16 | 141 | </div> |
26b7305a | 142 | |
2d9fea16 RK |
143 | <div class="video-info-description"> |
144 | <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div> | |
191764f3 | 145 | |
2d9fea16 RK |
146 | <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()"> |
147 | <ng-container i18n>Show more</ng-container> | |
148 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span> | |
b28e4e5e | 149 | <my-small-loader class="description-loading" [loading]="descriptionLoading"></my-small-loader> |
1f788f20 | 150 | </div> |
d07137b9 | 151 | |
2d9fea16 RK |
152 | <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more"> |
153 | <ng-container i18n>Show less</ng-container> | |
154 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span> | |
1f788f20 C |
155 | </div> |
156 | </div> | |
09223546 | 157 | |
2d9fea16 RK |
158 | <div class="video-attributes"> |
159 | <div class="video-attribute"> | |
160 | <span i18n class="video-attribute-label">Privacy</span> | |
161 | <span class="video-attribute-value">{{ video.privacy.label }}</span> | |
162 | </div> | |
adb115f5 | 163 | |
b718fd22 C |
164 | <div *ngIf="!!video.originallyPublishedAt" class="video-attribute"> |
165 | <span i18n class="video-attribute-label">Originally published</span> | |
166 | <span class="video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span> | |
adb115f5 | 167 | </div> |
2de96f4d | 168 | |
2d9fea16 RK |
169 | <div class="video-attribute"> |
170 | <span i18n class="video-attribute-label">Category</span> | |
171 | <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span> | |
172 | <a | |
173 | *ngIf="video.category.id" class="video-attribute-value" | |
174 | [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }" | |
175 | >{{ video.category.label }}</a> | |
176 | </div> | |
2de96f4d | 177 | |
2d9fea16 RK |
178 | <div class="video-attribute"> |
179 | <span i18n class="video-attribute-label">Licence</span> | |
180 | <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span> | |
181 | <a | |
182 | *ngIf="video.licence.id" class="video-attribute-value" | |
183 | [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }" | |
184 | >{{ video.licence.label }}</a> | |
185 | </div> | |
db216afd | 186 | |
2d9fea16 RK |
187 | <div class="video-attribute"> |
188 | <span i18n class="video-attribute-label">Language</span> | |
189 | <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span> | |
190 | <a | |
191 | *ngIf="video.language.id" class="video-attribute-value" | |
192 | [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }" | |
193 | >{{ video.language.label }}</a> | |
194 | </div> | |
fd45e8f4 | 195 | |
2d9fea16 RK |
196 | <div class="video-attribute video-attribute-tags"> |
197 | <span i18n class="video-attribute-label">Tags</span> | |
198 | <a | |
199 | *ngFor="let tag of getVideoTags()" | |
200 | class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }" | |
201 | >{{ tag }}</a> | |
202 | </div> | |
20206dfb | 203 | </div> |
09223546 | 204 | |
3b766e18 RK |
205 | <my-video-comments [video]="video" [user]="user"></my-video-comments> |
206 | </div> | |
207 | ||
8ff3f883 | 208 | <my-recommended-videos [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" [user]="user"></my-recommended-videos> |
d1992b93 C |
209 | </div> |
210 | </div> | |
8ff3f883 | 211 | |
2b3b76ab | 212 | <div class="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> | |
d1992b93 | 225 | |
ad42bea3 | 226 | <ng-template [ngIf]="video !== null"> |
07fa4c97 | 227 | <my-video-support #videoSupportModal [video]="video"></my-video-support> |
4f8c0eb0 | 228 | <my-video-share #videoShareModal [video]="video"></my-video-share> |
a96aed15 | 229 | <my-video-download #videoDownloadModal [video]="video"></my-video-download> |
4f8c0eb0 | 230 | <my-video-report #videoReportModal [video]="video"></my-video-report> |
26b7305a | 231 | <my-video-blacklist #videoBlacklistModal [video]="video"></my-video-blacklist> |
ad42bea3 | 232 | </ng-template> |