]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Add ability to update thumbnail and preview on client
[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
196b7790 47 <div (click)="showShareModal()" class="action-button action-button-share">
1f788f20
C
48 <span class="icon icon-share"></span>
49 Share
50 </div>
6e07c3de 51
1f788f20
C
52 <div class="action-more" dropdown dropup="true" placement="right">
53 <div class="action-button" dropdownToggle>
54 <span class="icon icon-more"></span>
55 </div>
56
57 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
58 <li role="menuitem">
59 <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)">
60 <span class="icon icon-download"></span> Download
61 </a>
62 </li>
63
64 <li *ngIf="isUserLoggedIn()" role="menuitem">
65 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
66 <span class="icon icon-alert"></span> Report
67 </a>
68 </li>
69
70 <li *ngIf="isVideoBlacklistable()" role="menuitem">
71 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
72 <span class="icon icon-blacklist"></span> Blacklist
73 </a>
74 </li>
75
76 <li *ngIf="isVideoUpdatable()" role="menuitem">
77 <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]">
78 <span class="icon icon-edit"></span> Update
79 </a>
80 </li>
81
82 <li *ngIf="isVideoRemovable()" role="menuitem">
83 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
84 <span class="icon icon-blacklist"></span> Delete
85 </a>
86 </li>
87 </ul>
88 </div>
89 </div>
d07137b9 90
1f788f20
C
91 <div
92 class="video-info-likes-dislikes-bar"
93 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText">
94 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
95 </div>
96 </div>
20206dfb 97 </div>
09223546 98
20206dfb
C
99 <div class="video-info-description">
100 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
2de96f4d 101
20206dfb
C
102 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length === 250" (click)="showMoreDescription()">
103 Show more
104 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
105 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
106 </div>
2de96f4d 107
20206dfb
C
108 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
109 Show less
110 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
111 </div>
2de96f4d 112 </div>
db216afd 113
20206dfb
C
114 <div class="video-attributes">
115 <div class="video-attribute">
116 <span class="video-attribute-label">
117 Privacy
118 </span>
119 <span class="video-attribute-value">
120 {{ video.privacyLabel }}
121 </span>
122 </div>
fd45e8f4 123
20206dfb
C
124 <div class="video-attribute">
125 <span class="video-attribute-label">
126 Category
127 </span>
128 <span class="video-attribute-value">
129 {{ video.categoryLabel }}
130 </span>
131 </div>
09223546 132
20206dfb
C
133 <div class="video-attribute">
134 <span class="video-attribute-label">
135 Licence
136 </span>
137 <span class="video-attribute-value">
138 {{ video.licenceLabel }}
139 </span>
140 </div>
09223546 141
20206dfb
C
142 <div class="video-attribute">
143 <span class="video-attribute-label">
144 Language
145 </span>
146 <span class="video-attribute-value">
147 {{ video.languageLabel }}
148 </span>
149 </div>
8ce9e815 150
20206dfb
C
151 <div class="video-attribute">
152 <span class="video-attribute-label">
153 Tags
154 </span>
8ce9e815 155
20206dfb
C
156 <span class="video-attribute-value">
157 {{ getVideoTags() }}
158 </span>
159 </div>
8ce9e815 160 </div>
b1fa3eba 161
4635f59d 162 <my-video-comments [video]="video" [user]="user"></my-video-comments>
41c3dfac
C
163 </div>
164
20206dfb
C
165 <div class="other-videos">
166 <div class="title-page title-page-single">
167 Other videos
168 </div>
169
57a49263 170 <div *ngFor="let video of otherVideosDisplayed">
20206dfb
C
171 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
172 </div>
d1992b93
C
173 </div>
174 </div>
175</div>
176
ad42bea3 177<ng-template [ngIf]="video !== null">
4f8c0eb0 178 <my-video-share #videoShareModal [video]="video"></my-video-share>
a96aed15 179 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
4f8c0eb0 180 <my-video-report #videoReportModal [video]="video"></my-video-report>
ad42bea3 181</ng-template>