]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Infinite scroll to list our subscriptions
[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">
8a19bee1 40 <a [routerLink]="[ '/video-channels', video.channel.name ]" 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>
22a16e36 45
f37dc0dd 46 <my-subscribe-button [videoChannel]="video.channel" size="small"></my-subscribe-button>
20206dfb 47 </div>
99cc4f49 48
1f788f20 49 <div class="video-info-by">
22a16e36
C
50 <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Go to the account page">
51 <span i18n>By {{ video.byAccount }}</span>
d3e91a5f 52 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
66dc5907 53 </a>
b7f5b524 54
22a16e36 55 <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>
b1fa3eba 56 </div>
1f788f20 57 </div>
b1fa3eba 58
1f788f20
C
59 <div class="video-actions-rates">
60 <div class="video-actions">
61 <div
0f7fedc3
C
62 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
63 class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'"
1f788f20 64 >
989e526a 65 <span class="icon icon-like" i18n-title title="Like this video" ></span>
20206dfb
C
66 </div>
67
1f788f20 68 <div
0f7fedc3
C
69 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
70 class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'"
1f788f20 71 >
989e526a 72 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
1f788f20 73 </div>
6a9e1d42 74
3bf1ec2e 75 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
07fa4c97 76 <span class="icon icon-support"></span>
989e526a 77 <span class="icon-text" i18n>Support</span>
07fa4c97
C
78 </div>
79
0f7fedc3 80 <div (click)="showShareModal()" class="action-button action-button-share" role="button">
1f788f20 81 <span class="icon icon-share"></span>
989e526a 82 <span class="icon-text" i18n>Share</span>
1f788f20 83 </div>
6e07c3de 84
63347a0f
C
85 <div class="action-more" ngbDropdown placement="top" role="button">
86 <div class="action-button" ngbDropdownToggle role="button">
1f788f20
C
87 <span class="icon icon-more"></span>
88 </div>
89
63347a0f
C
90 <div ngbDropdownMenu>
91 <a class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)">
92 <span class="icon icon-download"></span> <ng-container i18n>Download</ng-container>
93 </a>
94
95 <a *ngIf="isUserLoggedIn()" class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)">
96 <span class="icon icon-alert"></span> <ng-container i18n>Report</ng-container>
97 </a>
98
63347a0f
C
99 <a *ngIf="isVideoUpdatable()" 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
26b7305a
C
103 <a *ngIf="isVideoBlacklistable()" class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="showBlacklistModal($event)">
104 <span class="icon icon-blacklist"></span> <ng-container i18n>Blacklist</ng-container>
105 </a>
106
191764f3
C
107 <a *ngIf="isVideoUnblacklistable()" class="dropdown-item" i18n-title title="Unblacklist this video" href="#" (click)="unblacklistVideo($event)">
108 <span class="icon icon-unblacklist"></span> <ng-container i18n>Unblacklist</ng-container>
109 </a>
110
63347a0f 111 <a *ngIf="isVideoRemovable()" class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)">
26b7305a 112 <span class="icon icon-delete"></span> <ng-container i18n>Delete</ng-container>
63347a0f
C
113 </a>
114 </div>
1f788f20
C
115 </div>
116 </div>
d07137b9 117
1f788f20
C
118 <div
119 class="video-info-likes-dislikes-bar"
63347a0f 120 *ngIf="video.likes !== 0 || video.dislikes !== 0" [ngbTooltip]="likesBarTooltipText">
1f788f20
C
121 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
122 </div>
123 </div>
20206dfb 124 </div>
09223546 125
20206dfb
C
126 <div class="video-info-description">
127 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
2de96f4d 128
4001b3bc 129 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
989e526a 130 <ng-container i18n>Show more</ng-container>
20206dfb
C
131 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
132 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
133 </div>
2de96f4d 134
20206dfb 135 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
989e526a 136 <ng-container i18n>Show less</ng-container>
20206dfb
C
137 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
138 </div>
2de96f4d 139 </div>
db216afd 140
20206dfb
C
141 <div class="video-attributes">
142 <div class="video-attribute">
4278710d
C
143 <span i18n class="video-attribute-label">Privacy</span>
144 <span class="video-attribute-value">{{ video.privacy.label }}</span>
20206dfb 145 </div>
fd45e8f4 146
20206dfb 147 <div class="video-attribute">
4278710d
C
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>
20206dfb 154 </div>
09223546 155
20206dfb 156 <div class="video-attribute">
4278710d
C
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>
20206dfb 163 </div>
09223546 164
20206dfb 165 <div class="video-attribute">
4278710d
C
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>
20206dfb 172 </div>
8ce9e815 173
4278710d
C
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>
20206dfb 180 </div>
8ce9e815 181 </div>
b1fa3eba 182
4635f59d 183 <my-video-comments [video]="video" [user]="user"></my-video-comments>
41c3dfac
C
184 </div>
185
20206dfb 186 <div class="other-videos">
989e526a 187 <div i18n class="title-page title-page-single">
20206dfb
C
188 Other videos
189 </div>
190
57a49263 191 <div *ngFor="let video of otherVideosDisplayed">
20206dfb
C
192 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
193 </div>
d1992b93
C
194 </div>
195 </div>
2b3b76ab
C
196
197
198 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
989e526a 199 <strong i18n>Friendly Reminder:</strong>
2b3b76ab 200 <div class="privacy-concerns-text">
989e526a 201 <ng-container i18n>
a7c9cbb5 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.
989e526a 203 </ng-container>
78f912ed 204 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a>
2b3b76ab
C
205 </div>
206
989e526a 207 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
2b3b76ab
C
208 OK
209 </div>
210 </div>
d1992b93
C
211</div>
212
ad42bea3 213<ng-template [ngIf]="video !== null">
07fa4c97 214 <my-video-support #videoSupportModal [video]="video"></my-video-support>
4f8c0eb0 215 <my-video-share #videoShareModal [video]="video"></my-video-share>
a96aed15 216 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
4f8c0eb0 217 <my-video-report #videoReportModal [video]="video"></my-video-report>
26b7305a 218 <my-video-blacklist #videoBlacklistModal [video]="video"></my-video-blacklist>
ad42bea3 219</ng-template>