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