aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/video-thumbnail.component.html
blob: d256669165b09778baf7a96196ba7c047f627c0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
<a
  [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name"
  class="video-thumbnail"
>
  <img alt="" [attr.aria-labelledby]="video.name" [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" />

  <div class="video-thumbnail-overlay">{{ video.durationLabel }}</div>

  <div class="progress-bar" *ngIf="video.userHistory?.currentTime">
    <div [ngStyle]="{ 'width.%': getProgressPercent() }"></div>
  </div>
</a>