]>
Commit | Line | Data |
---|---|---|
1 | <div class="video-miniature" [ngClass]="getClasses()" (mouseenter)="loadActions()"> | |
2 | <my-video-thumbnail | |
3 | [video]="video" [nsfw]="isVideoBlur" [videoRouterLink]="videoRouterLink" [videoHref]="videoHref" [videoTarget]="videoTarget" | |
4 | [displayWatchLaterPlaylist]="isWatchLaterPlaylistDisplayed()" [inWatchLaterPlaylist]="inWatchLaterPlaylist" (watchLaterClick)="onWatchLaterClick($event)" | |
5 | > | |
6 | <ng-container ngProjectAs="label-warning" *ngIf="displayOptions.privacyLabel && isUnlistedVideo()" i18n>Unlisted</ng-container> | |
7 | <ng-container ngProjectAs="label-danger" *ngIf="displayOptions.privacyLabel && isPrivateVideo()" i18n>Private</ng-container> | |
8 | </my-video-thumbnail> | |
9 | ||
10 | <div class="video-bottom"> | |
11 | <div class="video-miniature-information"> | |
12 | <div class="d-flex video-miniature-meta"> | |
13 | <a *ngIf="displayOptions.avatar && displayOwnerVideoChannel()" class="avatar" [routerLink]="[ '/video-channels', video.byVideoChannel ]" [title]="channelLinkTitle"> | |
14 | <img [src]="getAvatarUrl()" alt="" class="channel" /> | |
15 | </a> | |
16 | <my-account-avatar *ngIf="displayOptions.avatar && displayOwnerAccount()" [account]="video.account" size="40" [href]="'/video-channels/' + video.byVideoChannel" [title]="channelLinkTitle"></my-account-avatar> | |
17 | ||
18 | <div class="w-100 d-flex flex-column"> | |
19 | <a *ngIf="!videoHref" tabindex="-1" class="video-miniature-name" | |
20 | [routerLink]="videoRouterLink" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }" | |
21 | >{{ video.name }}</a> | |
22 | ||
23 | <a *ngIf="videoHref" tabindex="-1" class="video-miniature-name" | |
24 | [href]="videoHref" [target]="videoTarget" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }" | |
25 | >{{ video.name }}</a> | |
26 | ||
27 | <span class="video-miniature-created-at-views"> | |
28 | <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle> | |
29 | ||
30 | <span class="views" [title]="video.getExactNumberOfViews()"> | |
31 | <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container> | |
32 | ||
33 | <my-video-views-counter *ngIf="displayOptions.views" [video]="video"></my-video-views-counter> | |
34 | </span> | |
35 | </span> | |
36 | ||
37 | <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/video-channels', video.byVideoChannel ]"> | |
38 | {{ video.byAccount }} | |
39 | </a> | |
40 | <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerVideoChannel()" class="video-miniature-channel" [routerLink]="[ '/video-channels', video.byVideoChannel ]"> | |
41 | {{ video.byVideoChannel }} | |
42 | </a> | |
43 | ||
44 | <div class="video-info-privacy"> | |
45 | <ng-container *ngIf="displayOptions.privacyText">{{ video.privacy.label }}</ng-container> | |
46 | <ng-container *ngIf="displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> - </ng-container> | |
47 | <ng-container *ngIf="displayOptions.state">{{ getStateLabel(video) }}</ng-container> | |
48 | </div> | |
49 | </div> | |
50 | </div> | |
51 | ||
52 | <div *ngIf="displayOptions.blacklistInfo && video.blacklisted" class="video-info-blocked"> | |
53 | <span class="blocked-label" i18n>Blocked</span> | |
54 | <span class="blocked-reason" *ngIf="video.blockedReason">{{ video.blockedReason }}</span> | |
55 | </div> | |
56 | ||
57 | <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw"> | |
58 | Sensitive | |
59 | </div> | |
60 | </div> | |
61 | ||
62 | <div class="video-actions"> | |
63 | <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 --> | |
64 | <my-video-actions-dropdown | |
65 | *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto" | |
66 | (videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" (videoAccountMuted)="onVideoAccountMuted()" | |
67 | ></my-video-actions-dropdown> | |
68 | </div> | |
69 | </div> | |
70 | </div> |