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