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