]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch.component.html
Merge branch 'release/beta-10' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.html
1 <div class="row">
2 <!-- We need the video container for videojs so we just hide it -->
3 <div id="video-element-wrapper">
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>
9 </div>
10
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
15 <div i18n class="alert alert-warning" *ngIf="isVideoToTranscode()">
16 The video is being transcoded, it may not work properly.
17 </div>
18
19 <div i18n class="alert alert-info" *ngIf="hasVideoScheduledPublication()">
20 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}
21 </div>
22
23 <!-- Video information -->
24 <div *ngIf="video" class="margin-content video-bottom">
25 <div class="video-info">
26 <div class="video-info-first-row">
27 <div>
28 <div class="video-info-name">{{ video.name }}</div>
29
30 <div i18n class="video-info-date-views">
31 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
32 </div>
33
34 <div class="video-info-channel">
35 <a [routerLink]="[ '/video-channels', video.channel.uuid ]" i18n-title title="Go the channel page">
36 {{ video.channel.displayName }}
37
38 <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" />
39 </a>
40 <!-- Here will be the subscribe button -->
41 </div>
42
43 <div class="video-info-by">
44 <a [routerLink]="[ '/accounts', video.by ]" i18n-title title="Go to the account page">
45 <span i18n>By {{ video.by }}</span>
46 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
47 </a>
48
49 <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>
50 </div>
51 </div>
52
53 <div class="video-actions-rates">
54 <div class="video-actions">
55 <div
56 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
57 class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'"
58 >
59 <span class="icon icon-like" i18n-title title="Like this video" ></span>
60 </div>
61
62 <div
63 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
64 class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'"
65 >
66 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
67 </div>
68
69 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
70 <span class="icon icon-support"></span>
71 <span class="icon-text" i18n>Support</span>
72 </div>
73
74 <div (click)="showShareModal()" class="action-button action-button-share" role="button">
75 <span class="icon icon-share"></span>
76 <span class="icon-text" i18n>Share</span>
77 </div>
78
79 <div class="action-more" dropdown dropup="true" placement="right" role="button">
80 <div class="action-button" dropdownToggle>
81 <span class="icon icon-more"></span>
82 </div>
83
84 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
85 <li role="menuitem">
86 <a class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)">
87 <span class="icon icon-download"></span> <ng-container i18n>Download</ng-container>
88 </a>
89 </li>
90
91 <li *ngIf="isUserLoggedIn()" role="menuitem">
92 <a class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)">
93 <span class="icon icon-alert"></span> <ng-container i18n>Report</ng-container>
94 </a>
95 </li>
96
97 <li *ngIf="isVideoBlacklistable()" role="menuitem">
98 <a class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
99 <span class="icon icon-blacklist"></span> <ng-container i18n>Blacklist</ng-container>
100 </a>
101 </li>
102
103 <li *ngIf="isVideoUpdatable()" role="menuitem">
104 <a class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]">
105 <span class="icon icon-edit"></span> <ng-container i18n>Update</ng-container>
106 </a>
107 </li>
108
109 <li *ngIf="isVideoRemovable()" role="menuitem">
110 <a class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)">
111 <span class="icon icon-blacklist"></span> <ng-container i18n>Delete</ng-container>
112 </a>
113 </li>
114 </ul>
115 </div>
116 </div>
117
118 <div
119 class="video-info-likes-dislikes-bar"
120 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText">
121 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
122 </div>
123 </div>
124 </div>
125
126 <div class="video-info-description">
127 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
128
129 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
130 <ng-container i18n>Show more</ng-container>
131 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
132 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
133 </div>
134
135 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
136 <ng-container i18n>Show less</ng-container>
137 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
138 </div>
139 </div>
140
141 <div class="video-attributes">
142 <div class="video-attribute">
143 <span i18n class="video-attribute-label">Privacy</span>
144 <span class="video-attribute-value">{{ video.privacy.label }}</span>
145 </div>
146
147 <div class="video-attribute">
148 <span i18n class="video-attribute-label">Category</span>
149 <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span>
150 <a
151 *ngIf="video.category.id" class="video-attribute-value"
152 [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }"
153 >{{ video.category.label }}</a>
154 </div>
155
156 <div class="video-attribute">
157 <span i18n class="video-attribute-label">Licence</span>
158 <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span>
159 <a
160 *ngIf="video.licence.id" class="video-attribute-value"
161 [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }"
162 >{{ video.licence.label }}</a>
163 </div>
164
165 <div class="video-attribute">
166 <span i18n class="video-attribute-label">Language</span>
167 <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span>
168 <a
169 *ngIf="video.language.id" class="video-attribute-value"
170 [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }"
171 >{{ video.language.label }}</a>
172 </div>
173
174 <div class="video-attribute video-attribute-tags">
175 <span i18n class="video-attribute-label">Tags</span>
176 <a
177 *ngFor="let tag of getVideoTags()"
178 class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }"
179 >{{ tag }}</a>
180 </div>
181 </div>
182
183 <my-video-comments [video]="video" [user]="user"></my-video-comments>
184 </div>
185
186 <div class="other-videos">
187 <div i18n class="title-page title-page-single">
188 Other videos
189 </div>
190
191 <div *ngFor="let video of otherVideosDisplayed">
192 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
193 </div>
194 </div>
195 </div>
196
197
198 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
199 <strong i18n>Friendly Reminder:</strong>
200 <div class="privacy-concerns-text">
201 <ng-container i18n>
202 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.
203 </ng-container>
204 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a>
205 </div>
206
207 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
208 OK
209 </div>
210 </div>
211 </div>
212
213 <ng-template [ngIf]="video !== null">
214 <my-video-support #videoSupportModal [video]="video"></my-video-support>
215 <my-video-share #videoShareModal [video]="video"></my-video-share>
216 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
217 <my-video-report #videoReportModal [video]="video"></my-video-report>
218 </ng-template>