aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/app/videos/video-list/video-miniature.component.html
blob: 244254b5a8b81aeed7df693ff577d87087ac8a77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div class="video-miniature col-md-4" (mouseenter)="onHover()" (mouseleave)="onBlur()">
  <a
    [routerLink]="['VideosWatch', { id: video.id }]" [attr.title]="video.description"
    class="video-miniature-thumbnail"
  >
    <img [attr.src]="video.thumbnailPath" alt="video thumbnail" />
    <span class="video-miniature-duration">{{ video.duration }}</span>
  </a>
  <span
    *ngIf="displayRemoveIcon()" (click)="removeVideo(video.id)"
    class="video-miniature-remove glyphicon glyphicon-remove"
  ></span>

  <div class="video-miniature-informations">
    <a [routerLink]="['VideosWatch', { id: video.id }]" class="video-miniature-name">
      <span>{{ video.name }}</span>
    </a>

    <span class="video-miniature-author">by {{ video.by }}</span>
    <span class="video-miniature-created-date">on {{ video.createdDate | date:'short' }}</span>
  </div>
</div>