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