mirror of https://github.com/Chocobozzz/PeerTube
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
<div class="video-miniature col-md-4 col-sm-6 col-xs-6" (mouseenter)="onHover()" (mouseleave)="onBlur()">
|
|
<a
|
|
[routerLink]="['/videos/watch', 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">
|
|
<span class="video-miniature-name-tags">
|
|
<a [routerLink]="['/videos/watch', video.id]" [attr.title]="video.name" class="video-miniature-name">{{ video.name }}</a>
|
|
|
|
<div class="video-miniature-tags">
|
|
<span *ngFor="let tag of video.tags" class="video-miniature-tag">
|
|
<a [routerLink]="['/videos/list', { field: 'tags', search: tag, sort: currentSort }]" class="label label-primary">{{ tag }}</a>
|
|
</span>
|
|
</div>
|
|
</span>
|
|
|
|
<a [routerLink]="['/videos/list', { field: 'author', search: video.author, sort: currentSort }]" class="video-miniature-author">{{ video.by }}</a>
|
|
<span class="video-miniature-created-at">{{ video.createdAt | date:'short' }}</span>
|
|
</div>
|
|
</div>
|