]>
Commit | Line | Data |
---|---|---|
1 | <div class="video-miniature col-md-4 col-sm-6 col-xs-6" (mouseenter)="onHover()" (mouseleave)="onBlur()"> | |
2 | <a | |
3 | [routerLink]="['/videos/watch', video.id]" [attr.title]="video.description" | |
4 | class="video-miniature-thumbnail" | |
5 | > | |
6 | <img [attr.src]="video.thumbnailPath" alt="video thumbnail" /> | |
7 | <span class="video-miniature-duration">{{ video.duration }}</span> | |
8 | </a> | |
9 | <span | |
10 | *ngIf="displayRemoveIcon()" (click)="removeVideo(video.id)" | |
11 | class="video-miniature-remove glyphicon glyphicon-remove" | |
12 | ></span> | |
13 | ||
14 | <div class="video-miniature-informations"> | |
15 | <span class="video-miniature-name-tags"> | |
16 | <a [routerLink]="['/videos/watch', video.id]" [attr.title]="video.name" class="video-miniature-name">{{ video.name }}</a> | |
17 | ||
18 | <div class="video-miniature-tags"> | |
19 | <span *ngFor="let tag of video.tags" class="video-miniature-tag"> | |
20 | <a [routerLink]="['/videos/list', { field: 'tags', search: tag, sort: currentSort }]" class="label label-primary">{{ tag }}</a> | |
21 | </span> | |
22 | </div> | |
23 | </span> | |
24 | ||
25 | <a [routerLink]="['/videos/list', { field: 'author', search: video.author, sort: currentSort }]" class="video-miniature-author">{{ video.by }}</a> | |
26 | <span class="video-miniature-created-date">{{ video.createdDate | date:'short' }}</span> | |
27 | </div> | |
28 | </div> |