]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Display table next/prev/first/last icons
[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">
d1992b93 4 </div>
897ec54d 5
bbe0f064 6 <div i18n class="alert alert-warning" *ngIf="isVideoToTranscode()">
2186386c
C
7 The video is being transcoded, it may not work properly.
8 </div>
9
bbe0f064
C
10 <div i18n class="alert alert-info" *ngIf="hasVideoScheduledPublication()">
11 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}
12 </div>
13
20206dfb
C
14 <!-- Video information -->
15 <div *ngIf="video" class="margin-content video-bottom">
16 <div class="video-info">
1f788f20
C
17 <div class="video-info-first-row">
18 <div>
19 <div class="video-info-name">{{ video.name }}</div>
d1992b93 20
989e526a 21 <div i18n class="video-info-date-views">
2922e048 22 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
20206dfb 23 </div>
d38b8281 24
1f788f20 25 <div class="video-info-channel">
e86e53ea 26 <a [routerLink]="[ '/video-channels', video.channel.uuid ]" i18n-title title="Go the channel page">
95166f9a 27 {{ video.channel.displayName }}
52d9f792
C
28
29 <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" />
95166f9a 30 </a>
1f788f20 31 <!-- Here will be the subscribe button -->
9e32b99c 32 <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>
20206dfb 33 </div>
99cc4f49 34
1f788f20 35 <div class="video-info-by">
9e32b99c 36 <a [routerLink]="[ '/accounts', video.by ]" i18n-title title="Go to the account page">
989e526a 37 <span i18n>By {{ video.by }}</span>
d3e91a5f 38 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
66dc5907 39 </a>
b1fa3eba 40 </div>
1f788f20 41 </div>
b1fa3eba 42
1f788f20
C
43 <div class="video-actions-rates">
44 <div class="video-actions">
45 <div
46 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
47 class="action-button action-button-like"
48 >
989e526a 49 <span class="icon icon-like" i18n-title title="Like this video" ></span>
20206dfb
C
50 </div>
51
1f788f20
C
52 <div
53 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
54 class="action-button action-button-dislike"
55 >
989e526a 56 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
1f788f20 57 </div>
6a9e1d42 58
3bf1ec2e 59 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
07fa4c97 60 <span class="icon icon-support"></span>
989e526a 61 <span class="icon-text" i18n>Support</span>
07fa4c97
C
62 </div>
63
196b7790 64 <div (click)="showShareModal()" class="action-button action-button-share">
1f788f20 65 <span class="icon icon-share"></span>
989e526a 66 <span class="icon-text" i18n>Share</span>
1f788f20 67 </div>
6e07c3de 68
1f788f20
C
69 <div class="action-more" dropdown dropup="true" placement="right">
70 <div class="action-button" dropdownToggle>
71 <span class="icon icon-more"></span>
72 </div>
73
74 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
75 <li role="menuitem">
989e526a
C
76 <a class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)">
77 <span class="icon icon-download"></span> <ng-container i18n>Download</ng-container>
1f788f20
C
78 </a>
79 </li>
80
81 <li *ngIf="isUserLoggedIn()" role="menuitem">
989e526a
C
82 <a class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)">
83 <span class="icon icon-alert"></span> <ng-container i18n>Report</ng-container>
1f788f20
C
84 </a>
85 </li>
86
87 <li *ngIf="isVideoBlacklistable()" role="menuitem">
989e526a
C
88 <a class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
89 <span class="icon icon-blacklist"></span> <ng-container i18n>Blacklist</ng-container>
1f788f20
C
90 </a>
91 </li>
92
93 <li *ngIf="isVideoUpdatable()" role="menuitem">
989e526a
C
94 <a class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]">
95 <span class="icon icon-edit"></span> <ng-container i18n>Update</ng-container>
1f788f20
C
96 </a>
97 </li>
98
99 <li *ngIf="isVideoRemovable()" role="menuitem">
989e526a
C
100 <a class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)">
101 <span class="icon icon-blacklist"></span> <ng-container i18n>Delete</ng-container>
1f788f20
C
102 </a>
103 </li>
104 </ul>
105 </div>
106 </div>
d07137b9 107
1f788f20
C
108 <div
109 class="video-info-likes-dislikes-bar"
110 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText">
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">
989e526a 133 <span i18n class="video-attribute-label">
20206dfb
C
134 Privacy
135 </span>
136 <span class="video-attribute-value">
09700934 137 {{ video.privacy.label }}
20206dfb
C
138 </span>
139 </div>
fd45e8f4 140
20206dfb 141 <div class="video-attribute">
989e526a 142 <span i18n class="video-attribute-label">
20206dfb
C
143 Category
144 </span>
145 <span class="video-attribute-value">
09700934 146 {{ video.category.label }}
20206dfb
C
147 </span>
148 </div>
09223546 149
20206dfb 150 <div class="video-attribute">
989e526a 151 <span i18n class="video-attribute-label">
20206dfb
C
152 Licence
153 </span>
154 <span class="video-attribute-value">
09700934 155 {{ video.licence.label }}
20206dfb
C
156 </span>
157 </div>
09223546 158
20206dfb 159 <div class="video-attribute">
989e526a 160 <span i18n class="video-attribute-label">
20206dfb
C
161 Language
162 </span>
163 <span class="video-attribute-value">
09700934 164 {{ video.language.label }}
20206dfb
C
165 </span>
166 </div>
8ce9e815 167
20206dfb 168 <div class="video-attribute">
989e526a 169 <span i18n class="video-attribute-label">
20206dfb
C
170 Tags
171 </span>
8ce9e815 172
20206dfb
C
173 <span class="video-attribute-value">
174 {{ getVideoTags() }}
175 </span>
176 </div>
8ce9e815 177 </div>
b1fa3eba 178
4635f59d 179 <my-video-comments [video]="video" [user]="user"></my-video-comments>
41c3dfac
C
180 </div>
181
20206dfb 182 <div class="other-videos">
989e526a 183 <div i18n class="title-page title-page-single">
20206dfb
C
184 Other videos
185 </div>
186
57a49263 187 <div *ngFor="let video of otherVideosDisplayed">
20206dfb
C
188 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
189 </div>
d1992b93
C
190 </div>
191 </div>
2b3b76ab
C
192
193
194 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
989e526a 195 <strong i18n>Friendly Reminder:</strong>
2b3b76ab 196 <div class="privacy-concerns-text">
989e526a 197 <ng-container i18n>
a7c9cbb5 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.
989e526a 199 </ng-container>
78f912ed 200 <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube">More information</a>
2b3b76ab
C
201 </div>
202
989e526a 203 <div i18n class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
2b3b76ab
C
204 OK
205 </div>
206 </div>
d1992b93
C
207</div>
208
ad42bea3 209<ng-template [ngIf]="video !== null">
07fa4c97 210 <my-video-support #videoSupportModal [video]="video"></my-video-support>
4f8c0eb0 211 <my-video-share #videoShareModal [video]="video"></my-video-share>
a96aed15 212 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
4f8c0eb0 213 <my-video-report #videoReportModal [video]="video"></my-video-report>
ad42bea3 214</ng-template>