Add tags support to the video list
[oweals/peertube.git] / client / src / app / videos / video-list / video-miniature.component.html
1 <div class="video-miniature col-md-4" (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]" class="video-miniature-name">{{ video.name }}</a>
17
18       <span *ngFor="let tag of video.tags" class="video-miniature-tag">
19         <a [routerLink]="['/videos/list', { field: 'tags', search: tag }]" class="label label-primary">{{ tag }}</a>
20       </span>
21     </span>
22
23     <a [routerLink]="['/videos/list', { field: 'author', search: video.author }]" class="video-miniature-author">by {{ video.by }}</a>
24     <span class="video-miniature-created-date">on {{ video.createdDate | date:'short' }}</span>
25   </div>
26 </div>