]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Preferably use the docker hub image
[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 -->
09edde40 3 <div [hidden]="videoNotFound" id="video-element-wrapper">
d1992b93 4 </div>
897ec54d
C
5
6 <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div>
b1fa3eba 7
20206dfb
C
8 <!-- Video information -->
9 <div *ngIf="video" class="margin-content video-bottom">
10 <div class="video-info">
1f788f20
C
11 <div class="video-info-first-row">
12 <div>
13 <div class="video-info-name">{{ video.name }}</div>
d1992b93 14
1f788f20 15 <div class="video-info-date-views">
2922e048 16 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
20206dfb 17 </div>
d38b8281 18
1f788f20
C
19 <div class="video-info-channel">
20 {{ video.channel.displayName }}
21 <!-- Here will be the subscribe button -->
20206dfb 22 </div>
99cc4f49 23
1f788f20 24 <div class="video-info-by">
170726f5 25 <a [routerLink]="[ '/accounts', video.account.id ]" title="Go the account page">
03e12d7c 26 <span>By {{ video.by }}</span>
d3e91a5f 27 <img [src]="video.accountAvatarUrl" alt="Account avatar" />
66dc5907 28 </a>
b1fa3eba 29 </div>
1f788f20 30 </div>
b1fa3eba 31
1f788f20
C
32 <div class="video-actions-rates">
33 <div class="video-actions">
34 <div
35 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
36 class="action-button action-button-like"
37 >
38 <span class="icon icon-like" title="Like this video" ></span>
20206dfb
C
39 </div>
40
1f788f20
C
41 <div
42 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
43 class="action-button action-button-dislike"
44 >
45 <span class="icon icon-dislike" title="Dislike this video"></span>
46 </div>
6a9e1d42 47
3bf1ec2e 48 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
07fa4c97
C
49 <span class="icon icon-support"></span>
50 <span class="icon-text">Support</span>
51 </div>
52
196b7790 53 <div (click)="showShareModal()" class="action-button action-button-share">
1f788f20 54 <span class="icon icon-share"></span>
07fa4c97 55 <span class="icon-text">Share</span>
1f788f20 56 </div>
6e07c3de 57
1f788f20
C
58 <div class="action-more" dropdown dropup="true" placement="right">
59 <div class="action-button" dropdownToggle>
60 <span class="icon icon-more"></span>
61 </div>
62
63 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
64 <li role="menuitem">
65 <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)">
66 <span class="icon icon-download"></span> Download
67 </a>
68 </li>
69
70 <li *ngIf="isUserLoggedIn()" role="menuitem">
71 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
72 <span class="icon icon-alert"></span> Report
73 </a>
74 </li>
75
76 <li *ngIf="isVideoBlacklistable()" role="menuitem">
77 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
78 <span class="icon icon-blacklist"></span> Blacklist
79 </a>
80 </li>
81
82 <li *ngIf="isVideoUpdatable()" role="menuitem">
83 <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]">
84 <span class="icon icon-edit"></span> Update
85 </a>
86 </li>
87
88 <li *ngIf="isVideoRemovable()" role="menuitem">
89 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
90 <span class="icon icon-blacklist"></span> Delete
91 </a>
92 </li>
93 </ul>
94 </div>
95 </div>
d07137b9 96
1f788f20
C
97 <div
98 class="video-info-likes-dislikes-bar"
99 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText">
100 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
101 </div>
102 </div>
20206dfb 103 </div>
09223546 104
20206dfb
C
105 <div class="video-info-description">
106 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
2de96f4d 107
4001b3bc 108 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
20206dfb
C
109 Show more
110 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
111 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
112 </div>
2de96f4d 113
20206dfb
C
114 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
115 Show less
116 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
117 </div>
2de96f4d 118 </div>
db216afd 119
20206dfb
C
120 <div class="video-attributes">
121 <div class="video-attribute">
122 <span class="video-attribute-label">
123 Privacy
124 </span>
125 <span class="video-attribute-value">
09700934 126 {{ video.privacy.label }}
20206dfb
C
127 </span>
128 </div>
fd45e8f4 129
20206dfb
C
130 <div class="video-attribute">
131 <span class="video-attribute-label">
132 Category
133 </span>
134 <span class="video-attribute-value">
09700934 135 {{ video.category.label }}
20206dfb
C
136 </span>
137 </div>
09223546 138
20206dfb
C
139 <div class="video-attribute">
140 <span class="video-attribute-label">
141 Licence
142 </span>
143 <span class="video-attribute-value">
09700934 144 {{ video.licence.label }}
20206dfb
C
145 </span>
146 </div>
09223546 147
20206dfb
C
148 <div class="video-attribute">
149 <span class="video-attribute-label">
150 Language
151 </span>
152 <span class="video-attribute-value">
09700934 153 {{ video.language.label }}
20206dfb
C
154 </span>
155 </div>
8ce9e815 156
20206dfb
C
157 <div class="video-attribute">
158 <span class="video-attribute-label">
159 Tags
160 </span>
8ce9e815 161
20206dfb
C
162 <span class="video-attribute-value">
163 {{ getVideoTags() }}
164 </span>
165 </div>
8ce9e815 166 </div>
b1fa3eba 167
4635f59d 168 <my-video-comments [video]="video" [user]="user"></my-video-comments>
41c3dfac
C
169 </div>
170
20206dfb
C
171 <div class="other-videos">
172 <div class="title-page title-page-single">
173 Other videos
174 </div>
175
57a49263 176 <div *ngFor="let video of otherVideosDisplayed">
20206dfb
C
177 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
178 </div>
d1992b93
C
179 </div>
180 </div>
2b3b76ab
C
181
182
183 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
184 <strong>Friendly Reminder:</strong>
185 <div class="privacy-concerns-text">
186 The sharing system used by this video implies that some technical information about your system (such as a public IP address) can be accessed publicly.
632c5e36 187 <a title="Get more information" target="_blank" rel="noopener noreferrer" href="/about#p2p-privacy">More information</a>
2b3b76ab
C
188 </div>
189
190 <div class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
191 OK
192 </div>
193 </div>
d1992b93
C
194</div>
195
ad42bea3 196<ng-template [ngIf]="video !== null">
07fa4c97 197 <my-video-support #videoSupportModal [video]="video"></my-video-support>
4f8c0eb0 198 <my-video-share #videoShareModal [video]="video"></my-video-share>
a96aed15 199 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
4f8c0eb0 200 <my-video-report #videoReportModal [video]="video"></my-video-report>
ad42bea3 201</ng-template>