]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Translate subtitle langs in player
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.html
CommitLineData
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
C
28 <!-- Video information -->
29 <div *ngIf="video" class="margin-content video-bottom">
30 <div class="video-info">
1f788f20
C
31 <div class="video-info-first-row">
32 <div>
33 <div class="video-info-name">{{ video.name }}</div>
d1992b93 34
989e526a 35 <div i18n class="video-info-date-views">
2922e048 36 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
20206dfb 37 </div>
d38b8281 38
1f788f20 39 <div class="video-info-channel">
e86e53ea 40 <a [routerLink]="[ '/video-channels', video.channel.uuid ]" i18n-title title="Go the channel page">
95166f9a 41 {{ video.channel.displayName }}
52d9f792
C
42
43 <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" />
95166f9a 44 </a>
1f788f20 45 <!-- Here will be the subscribe button -->
20206dfb 46 </div>
99cc4f49 47
1f788f20 48 <div class="video-info-by">
9e32b99c 49 <a [routerLink]="[ '/accounts', video.by ]" i18n-title title="Go to the account page">
989e526a 50 <span i18n>By {{ video.by }}</span>
d3e91a5f 51 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
66dc5907 52 </a>
b7f5b524
C
53
54 <my-help helpType="custom" i18n-customHtml customHtml="You can subscribe to this account via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box <strong>@{{video.account.name}}@{{video.account.host}}</strong> and subscribe there. Subscription as a PeerTube user is being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/470'>#470</a>."></my-help>
b1fa3eba 55 </div>
1f788f20 56 </div>
b1fa3eba 57
1f788f20
C
58 <div class="video-actions-rates">
59 <div class="video-actions">
60 <div
0f7fedc3
C
61 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
62 class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'"
1f788f20 63 >
989e526a 64 <span class="icon icon-like" i18n-title title="Like this video" ></span>
20206dfb
C
65 </div>
66
1f788f20 67 <div
0f7fedc3
C
68 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
69 class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'"
1f788f20 70 >
989e526a 71 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
1f788f20 72 </div>
6a9e1d42 73
3bf1ec2e 74 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
07fa4c97 75 <span class="icon icon-support"></span>
989e526a 76 <span class="icon-text" i18n>Support</span>
07fa4c97
C
77 </div>
78
0f7fedc3 79 <div (click)="showShareModal()" class="action-button action-button-share" role="button">
1f788f20 80 <span class="icon icon-share"></span>
989e526a 81 <span class="icon-text" i18n>Share</span>
1f788f20 82 </div>
6e07c3de 83
63347a0f
C
84 <div class="action-more" ngbDropdown placement="top" role="button">
85 <div class="action-button" ngbDropdownToggle role="button">
1f788f20
C
86 <span class="icon icon-more"></span>
87 </div>
88
63347a0f
C
89 <div ngbDropdownMenu>
90 <a class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)">
91 <span class="icon icon-download"></span> <ng-container i18n>Download</ng-container>
92 </a>
93
94 <a *ngIf="isUserLoggedIn()" class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)">
95 <span class="icon icon-alert"></span> <ng-container i18n>Report</ng-container>
96 </a>
97
63347a0f
C
98 <a *ngIf="isVideoUpdatable()" class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]">
99 <span class="icon icon-edit"></span> <ng-container i18n>Update</ng-container>
100 </a>
101
26b7305a
C
102 <a *ngIf="isVideoBlacklistable()" class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="showBlacklistModal($event)">
103 <span class="icon icon-blacklist"></span> <ng-container i18n>Blacklist</ng-container>
104 </a>
105
191764f3
C
106 <a *ngIf="isVideoUnblacklistable()" class="dropdown-item" i18n-title title="Unblacklist this video" href="#" (click)="unblacklistVideo($event)">
107 <span class="icon icon-unblacklist"></span> <ng-container i18n>Unblacklist</ng-container>
108 </a>
109
63347a0f 110 <a *ngIf="isVideoRemovable()" class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)">
26b7305a 111 <span class="icon icon-delete"></span> <ng-container i18n>Delete</ng-container>
63347a0f
C
112 </a>
113 </div>
1f788f20
C
114 </div>
115 </div>
d07137b9 116
1f788f20
C
117 <div
118 class="video-info-likes-dislikes-bar"
63347a0f 119 *ngIf="video.likes !== 0 || video.dislikes !== 0" [ngbTooltip]="likesBarTooltipText">
1f788f20
C
120 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
121 </div>
122 </div>
20206dfb 123 </div>
09223546 124
20206dfb
C
125 <div class="video-info-description">
126 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
2de96f4d 127
4001b3bc 128 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
989e526a 129 <ng-container i18n>Show more</ng-container>
20206dfb
C
130 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
131 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
132 </div>
2de96f4d 133
20206dfb 134 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
989e526a 135 <ng-container i18n>Show less</ng-container>
20206dfb
C
136 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
137 </div>
2de96f4d 138 </div>
db216afd 139
20206dfb
C
140 <div class="video-attributes">
141 <div class="video-attribute">
4278710d
C
142 <span i18n class="video-attribute-label">Privacy</span>
143 <span class="video-attribute-value">{{ video.privacy.label }}</span>
20206dfb 144 </div>
fd45e8f4 145
20206dfb 146 <div class="video-attribute">
4278710d
C
147 <span i18n class="video-attribute-label">Category</span>
148 <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span>
149 <a
150 *ngIf="video.category.id" class="video-attribute-value"
151 [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }"
152 >{{ video.category.label }}</a>
20206dfb 153 </div>
09223546 154
20206dfb 155 <div class="video-attribute">
4278710d
C
156 <span i18n class="video-attribute-label">Licence</span>
157 <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span>
158 <a
159 *ngIf="video.licence.id" class="video-attribute-value"
160 [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }"
161 >{{ video.licence.label }}</a>
20206dfb 162 </div>
09223546 163
20206dfb 164 <div class="video-attribute">
4278710d
C
165 <span i18n class="video-attribute-label">Language</span>
166 <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span>
167 <a
168 *ngIf="video.language.id" class="video-attribute-value"
169 [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }"
170 >{{ video.language.label }}</a>
20206dfb 171 </div>
8ce9e815 172
4278710d
C
173 <div class="video-attribute video-attribute-tags">
174 <span i18n class="video-attribute-label">Tags</span>
175 <a
176 *ngFor="let tag of getVideoTags()"
177 class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }"
178 >{{ tag }}</a>
20206dfb 179 </div>
8ce9e815 180 </div>
b1fa3eba 181
4635f59d 182 <my-video-comments [video]="video" [user]="user"></my-video-comments>
41c3dfac
C
183 </div>
184
20206dfb 185 <div class="other-videos">
989e526a 186 <div i18n class="title-page title-page-single">
20206dfb
C
187 Other videos
188 </div>
189
57a49263 190 <div *ngFor="let video of otherVideosDisplayed">
20206dfb
C
191 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
192 </div>
d1992b93
C
193 </div>
194 </div>
2b3b76ab
C
195
196
197 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
989e526a 198 <strong i18n>Friendly Reminder:</strong>
2b3b76ab 199 <div class="privacy-concerns-text">
989e526a 200 <ng-container i18n>
a7c9cbb5 201 The sharing system used by this video implies that some technical information about your system (such as a public IP address) can be sent to other peers.
989e526a 202 </ng-container>
78f912ed 203 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a>
2b3b76ab
C
204 </div>
205
989e526a 206 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
2b3b76ab
C
207 OK
208 </div>
209 </div>
d1992b93
C
210</div>
211
ad42bea3 212<ng-template [ngIf]="video !== null">
07fa4c97 213 <my-video-support #videoSupportModal [video]="video"></my-video-support>
4f8c0eb0 214 <my-video-share #videoShareModal [video]="video"></my-video-share>
a96aed15 215 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
4f8c0eb0 216 <my-video-report #videoReportModal [video]="video"></my-video-report>
26b7305a 217 <my-video-blacklist #videoBlacklistModal [video]="video"></my-video-blacklist>
ad42bea3 218</ng-template>