7e71a390b668c0134f7e132fa352819cc4f1b9f8
[oweals/peertube.git] / client / src / app / shared / video / video-thumbnail.component.html
1 <a
2   [routerLink]="getVideoRouterLink()" [queryParams]="queryParams" [attr.title]="video.name"
3   class="video-thumbnail"
4 >
5   <img alt="" [attr.aria-labelledby]="video.name" [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" />
6
7   <div *ngIf="displayWatchLaterPlaylist" class="video-thumbnail-actions-overlay">
8     <ng-container *ngIf="inWatchLaterPlaylist !== true">
9       <div class="video-thumbnail-watch-later-overlay" placement="left" [ngbTooltip]="addToWatchLaterText" container="body" (click)="onWatchLaterClick($event)">
10         <my-global-icon iconName="clock" [attr.aria-label]="addToWatchLaterText" role="button"></my-global-icon>
11       </div>
12     </ng-container>
13
14     <ng-container *ngIf="inWatchLaterPlaylist === true">
15       <div class="video-thumbnail-watch-later-overlay" placement="left" [ngbTooltip]="addedToWatchLaterText" container="body" (click)="onWatchLaterClick($event)">
16         <my-global-icon iconName="tick" [attr.aria-label]="addedToWatchLaterText" role="button"></my-global-icon>
17       </div>
18     </ng-container>
19   </div>
20
21   <div class="video-thumbnail-duration-overlay">{{ video.durationLabel }}</div>
22
23   <div class="play-overlay">
24     <div class="icon"></div>
25   </div>
26
27   <div class="progress-bar" *ngIf="video.userHistory?.currentTime">
28     <div [ngStyle]="{ 'width.%': getProgressPercent() }"></div>
29   </div>
30 </a>