]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Add blacklist reason field
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.html
CommitLineData
d1992b93 1<div class="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
C
19 <div i18n class="alert alert-info" *ngIf="hasVideoScheduledPublication()">
20 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}
21 </div>
22
20206dfb
C
23 <!-- Video information -->
24 <div *ngIf="video" class="margin-content video-bottom">
25 <div class="video-info">
1f788f20
C
26 <div class="video-info-first-row">
27 <div>
28 <div class="video-info-name">{{ video.name }}</div>
d1992b93 29
989e526a 30 <div i18n class="video-info-date-views">
2922e048 31 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
20206dfb 32 </div>
d38b8281 33
1f788f20 34 <div class="video-info-channel">
e86e53ea 35 <a [routerLink]="[ '/video-channels', video.channel.uuid ]" i18n-title title="Go the channel page">
95166f9a 36 {{ video.channel.displayName }}
52d9f792
C
37
38 <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" />
95166f9a 39 </a>
1f788f20 40 <!-- Here will be the subscribe button -->
20206dfb 41 </div>
99cc4f49 42
1f788f20 43 <div class="video-info-by">
9e32b99c 44 <a [routerLink]="[ '/accounts', video.by ]" i18n-title title="Go to the account page">
989e526a 45 <span i18n>By {{ video.by }}</span>
d3e91a5f 46 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
66dc5907 47 </a>
b7f5b524
C
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>
b1fa3eba 50 </div>
1f788f20 51 </div>
b1fa3eba 52
1f788f20
C
53 <div class="video-actions-rates">
54 <div class="video-actions">
55 <div
0f7fedc3
C
56 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
57 class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'"
1f788f20 58 >
989e526a 59 <span class="icon icon-like" i18n-title title="Like this video" ></span>
20206dfb
C
60 </div>
61
1f788f20 62 <div
0f7fedc3
C
63 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
64 class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'"
1f788f20 65 >
989e526a 66 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
1f788f20 67 </div>
6a9e1d42 68
3bf1ec2e 69 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
07fa4c97 70 <span class="icon icon-support"></span>
989e526a 71 <span class="icon-text" i18n>Support</span>
07fa4c97
C
72 </div>
73
0f7fedc3 74 <div (click)="showShareModal()" class="action-button action-button-share" role="button">
1f788f20 75 <span class="icon icon-share"></span>
989e526a 76 <span class="icon-text" i18n>Share</span>
1f788f20 77 </div>
6e07c3de 78
63347a0f
C
79 <div class="action-more" ngbDropdown placement="top" role="button">
80 <div class="action-button" ngbDropdownToggle role="button">
1f788f20
C
81 <span class="icon icon-more"></span>
82 </div>
83
63347a0f
C
84 <div ngbDropdownMenu>
85 <a class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)">
86 <span class="icon icon-download"></span> <ng-container i18n>Download</ng-container>
87 </a>
88
89 <a *ngIf="isUserLoggedIn()" class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)">
90 <span class="icon icon-alert"></span> <ng-container i18n>Report</ng-container>
91 </a>
92
63347a0f
C
93 <a *ngIf="isVideoUpdatable()" class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]">
94 <span class="icon icon-edit"></span> <ng-container i18n>Update</ng-container>
95 </a>
96
26b7305a
C
97 <a *ngIf="isVideoBlacklistable()" class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="showBlacklistModal($event)">
98 <span class="icon icon-blacklist"></span> <ng-container i18n>Blacklist</ng-container>
99 </a>
100
63347a0f 101 <a *ngIf="isVideoRemovable()" class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)">
26b7305a 102 <span class="icon icon-delete"></span> <ng-container i18n>Delete</ng-container>
63347a0f
C
103 </a>
104 </div>
1f788f20
C
105 </div>
106 </div>
d07137b9 107
1f788f20
C
108 <div
109 class="video-info-likes-dislikes-bar"
63347a0f 110 *ngIf="video.likes !== 0 || video.dislikes !== 0" [ngbTooltip]="likesBarTooltipText">
1f788f20
C
111 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
112 </div>
113 </div>
20206dfb 114 </div>
09223546 115
20206dfb
C
116 <div class="video-info-description">
117 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
2de96f4d 118
4001b3bc 119 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
989e526a 120 <ng-container i18n>Show more</ng-container>
20206dfb
C
121 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
122 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
123 </div>
2de96f4d 124
20206dfb 125 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
989e526a 126 <ng-container i18n>Show less</ng-container>
20206dfb
C
127 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
128 </div>
2de96f4d 129 </div>
db216afd 130
20206dfb
C
131 <div class="video-attributes">
132 <div class="video-attribute">
4278710d
C
133 <span i18n class="video-attribute-label">Privacy</span>
134 <span class="video-attribute-value">{{ video.privacy.label }}</span>
20206dfb 135 </div>
fd45e8f4 136
20206dfb 137 <div class="video-attribute">
4278710d
C
138 <span i18n class="video-attribute-label">Category</span>
139 <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span>
140 <a
141 *ngIf="video.category.id" class="video-attribute-value"
142 [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }"
143 >{{ video.category.label }}</a>
20206dfb 144 </div>
09223546 145
20206dfb 146 <div class="video-attribute">
4278710d
C
147 <span i18n class="video-attribute-label">Licence</span>
148 <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span>
149 <a
150 *ngIf="video.licence.id" class="video-attribute-value"
151 [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }"
152 >{{ video.licence.label }}</a>
20206dfb 153 </div>
09223546 154
20206dfb 155 <div class="video-attribute">
4278710d
C
156 <span i18n class="video-attribute-label">Language</span>
157 <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span>
158 <a
159 *ngIf="video.language.id" class="video-attribute-value"
160 [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }"
161 >{{ video.language.label }}</a>
20206dfb 162 </div>
8ce9e815 163
4278710d
C
164 <div class="video-attribute video-attribute-tags">
165 <span i18n class="video-attribute-label">Tags</span>
166 <a
167 *ngFor="let tag of getVideoTags()"
168 class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }"
169 >{{ tag }}</a>
20206dfb 170 </div>
8ce9e815 171 </div>
b1fa3eba 172
4635f59d 173 <my-video-comments [video]="video" [user]="user"></my-video-comments>
41c3dfac
C
174 </div>
175
20206dfb 176 <div class="other-videos">
989e526a 177 <div i18n class="title-page title-page-single">
20206dfb
C
178 Other videos
179 </div>
180
57a49263 181 <div *ngFor="let video of otherVideosDisplayed">
20206dfb
C
182 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
183 </div>
d1992b93
C
184 </div>
185 </div>
2b3b76ab
C
186
187
188 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
989e526a 189 <strong i18n>Friendly Reminder:</strong>
2b3b76ab 190 <div class="privacy-concerns-text">
989e526a 191 <ng-container i18n>
a7c9cbb5 192 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 193 </ng-container>
78f912ed 194 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a>
2b3b76ab
C
195 </div>
196
989e526a 197 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
2b3b76ab
C
198 OK
199 </div>
200 </div>
d1992b93
C
201</div>
202
ad42bea3 203<ng-template [ngIf]="video !== null">
07fa4c97 204 <my-video-support #videoSupportModal [video]="video"></my-video-support>
4f8c0eb0 205 <my-video-share #videoShareModal [video]="video"></my-video-share>
a96aed15 206 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
4f8c0eb0 207 <my-video-report #videoReportModal [video]="video"></my-video-report>
26b7305a 208 <my-video-blacklist #videoBlacklistModal [video]="video"></my-video-blacklist>
ad42bea3 209</ng-template>