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