]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch.component.html
fixing grid readjustment with expand and screens < 1150px
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.html
1 <div class="root-row 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 <div class="alert alert-danger" *ngIf="video?.blacklisted">
24 <div class="blacklisted-label" i18n>This video is blacklisted.</div>
25 {{ video.blacklistedReason }}
26 </div>
27
28 <!-- Video information -->
29 <div *ngIf="video" class="margin-content video-bottom">
30 <div class="row fullWidth">
31 <div class="col-12 col-lg-auto video-info">
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 -->
35 <div class="video-info-name">{{ video.name }}</div>
36
37 <div i18n class="video-info-date-views">
38 Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
39 </div>
40 </div>
41
42 <div class="d-flex justify-content-between align-items-sm-end">
43 <div class="d-none d-sm-block">
44 <div class="video-info-name">{{ video.name }}</div>
45
46 <div i18n class="video-info-date-views">
47 Published {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
48 </div>
49 </div>
50
51 <div class="video-actions-rates">
52 <div class="video-actions fullWidth justify-content-end">
53 <div
54 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
55 class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'"
56 >
57 <span class="icon icon-like" i18n-title title="Like this video" ></span>
58 </div>
59
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'"
63 >
64 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
65 </div>
66
67 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
68 <span class="icon icon-support"></span>
69 <span class="icon-text" i18n>Support</span>
70 </div>
71
72 <div (click)="showShareModal()" class="action-button action-button-share" role="button">
73 <span class="icon icon-share"></span>
74 <span class="icon-text" i18n>Share</span>
75 </div>
76
77 <div class="action-more" ngbDropdown placement="top" role="button">
78 <div class="action-button" ngbDropdownToggle role="button">
79 <span class="icon icon-more"></span>
80 </div>
81
82 <div ngbDropdownMenu>
83 <a class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)">
84 <span class="icon icon-download"></span> <ng-container i18n>Download</ng-container>
85 </a>
86
87 <a *ngIf="isUserLoggedIn()" class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)">
88 <span class="icon icon-alert"></span> <ng-container i18n>Report</ng-container>
89 </a>
90
91 <a *ngIf="isVideoUpdatable()" class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]">
92 <span class="icon icon-edit"></span> <ng-container i18n>Update</ng-container>
93 </a>
94
95 <a *ngIf="isVideoBlacklistable()" class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="showBlacklistModal($event)">
96 <span class="icon icon-blacklist"></span> <ng-container i18n>Blacklist</ng-container>
97 </a>
98
99 <a *ngIf="isVideoUnblacklistable()" class="dropdown-item" i18n-title title="Unblacklist this video" href="#" (click)="unblacklistVideo($event)">
100 <span class="icon icon-unblacklist"></span> <ng-container i18n>Unblacklist</ng-container>
101 </a>
102
103 <a *ngIf="isVideoRemovable()" class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)">
104 <span class="icon icon-delete"></span> <ng-container i18n>Delete</ng-container>
105 </a>
106 </div>
107 </div>
108 </div>
109
110 <div
111 class="video-info-likes-dislikes-bar"
112 *ngIf="video.likes !== 0 || video.dislikes !== 0"
113 placement="bottom"
114 [ngbTooltip]="likesBarTooltipText">
115 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
116 </div>
117 </div>
118 </div>
119
120
121 <div class="pt-3 border-top video-info-channel">
122 <a [routerLink]="[ '/video-channels', video.channel.name ]" i18n-title title="Go the channel page">
123 {{ video.channel.displayName }}
124
125 <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" />
126 </a>
127
128 <my-subscribe-button #subscribeButton *ngIf="isUserLoggedIn()" [videoChannel]="video.channel" size="small"></my-subscribe-button>
129 </div>
130
131 <div class="video-info-by">
132 <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Go to the account page">
133 <span i18n>By {{ video.byAccount }}</span>
134 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
135 </a>
136
137 <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."></my-help>
138 </div>
139 </div>
140
141 </div>
142
143 <div class="video-info-description">
144 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
145
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>
149 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
150 </div>
151
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>
155 </div>
156 </div>
157
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>
163
164 <div class="video-attribute">
165 <span i18n class="video-attribute-label">Category</span>
166 <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span>
167 <a
168 *ngIf="video.category.id" class="video-attribute-value"
169 [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }"
170 >{{ video.category.label }}</a>
171 </div>
172
173 <div class="video-attribute">
174 <span i18n class="video-attribute-label">Licence</span>
175 <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span>
176 <a
177 *ngIf="video.licence.id" class="video-attribute-value"
178 [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }"
179 >{{ video.licence.label }}</a>
180 </div>
181
182 <div class="video-attribute">
183 <span i18n class="video-attribute-label">Language</span>
184 <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span>
185 <a
186 *ngIf="video.language.id" class="video-attribute-value"
187 [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }"
188 >{{ video.language.label }}</a>
189 </div>
190
191 <div class="video-attribute video-attribute-tags">
192 <span i18n class="video-attribute-label">Tags</span>
193 <a
194 *ngFor="let tag of getVideoTags()"
195 class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }"
196 >{{ tag }}</a>
197 </div>
198 </div>
199
200 <my-video-comments [video]="video" [user]="user"></my-video-comments>
201 </div>
202
203 <div *ngIf="!isMenuExpanded()" class="w-100-until-1150px"></div>
204
205 <my-recommended-videos class="col-12 col-lg-3"
206 [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" [user]="user"></my-recommended-videos>
207 </div>
208 </div>
209
210 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
211 <div class="privacy-concerns-text">
212 <strong i18n>Friendly Reminder: </strong>
213 <ng-container i18n>
214 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.
215 </ng-container>
216 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a>
217 </div>
218
219 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
220 OK
221 </div>
222 </div>
223
224 <ng-template [ngIf]="video !== null">
225 <my-video-support #videoSupportModal [video]="video"></my-video-support>
226 <my-video-share #videoShareModal [video]="video"></my-video-share>
227 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
228 <my-video-report #videoReportModal [video]="video"></my-video-report>
229 <my-video-blacklist #videoBlacklistModal [video]="video"></my-video-blacklist>
230 </ng-template>