1 <div class=
"video-miniature" [ngClass]=
"{ 'display-as-row': displayAsRow }" (mouseenter)=
"loadActions()">
3 [video]=
"video" [nsfw]=
"isVideoBlur"
4 [displayWatchLaterPlaylist]=
"isWatchLaterPlaylistDisplayed()" [inWatchLaterPlaylist]=
"inWatchLaterPlaylist" (watchLaterClick)=
"onWatchLaterClick($event)"
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>
10 <div class=
"video-bottom">
11 <div class=
"video-miniature-information">
14 class=
"video-miniature-name"
15 [routerLink]=
"[ '/videos/watch', video.uuid ]" [attr.title]=
"video.name" [ngClass]=
"{ 'blur-filter': isVideoBlur }"
18 <span class=
"video-miniature-created-at-views">
19 <my-date-toggle *
ngIf=
"displayOptions.date" [date]=
"video.publishedAt"></my-date-toggle>
22 <ng-container *
ngIf=
"displayOptions.date && displayOptions.views"> •
</ng-container>
23 <ng-container i18n *
ngIf=
"displayOptions.views">{video.views, plural, =
1 {
1 view} other {{{ video.views | myNumberFormatter }} views}}
</ng-container>
27 <a tabindex=
"-1" *
ngIf=
"displayOptions.by && displayOwnerAccount()" class=
"video-miniature-account" [routerLink]=
"[ '/accounts', video.byAccount ]">
30 <a tabindex=
"-1" *
ngIf=
"displayOptions.by && displayOwnerVideoChannel()" class=
"video-miniature-channel" [routerLink]=
"[ '/video-channels', video.byVideoChannel ]">
31 {{ video.byVideoChannel }}
34 <div class=
"video-info-privacy">
35 <ng-container *
ngIf=
"displayOptions.privacyText">{{ video.privacy.label }}
</ng-container>
36 <ng-container *
ngIf=
"displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> -
</ng-container>
37 <ng-container *
ngIf=
"displayOptions.state">{{ getStateLabel(video) }}
</ng-container>
40 <div *
ngIf=
"displayOptions.blacklistInfo && video.blacklisted" class=
"video-info-blacklisted">
41 <span class=
"blacklisted-label" i18n
>Blacklisted
</span>
42 <span class=
"blacklisted-reason" *
ngIf=
"video.blacklistedReason">{{ video.blacklistedReason }}
</span>
45 <div i18n *
ngIf=
"displayOptions.nsfw && video.nsfw" class=
"video-info-nsfw">
50 <div class=
"video-actions">
51 <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 -->
52 <my-video-actions-dropdown
53 *
ngIf=
"showActions" [video]=
"video" [displayOptions]=
"videoActionsDisplayOptions" placement=
"bottom-left bottom-right left auto"
54 (videoRemoved)=
"onVideoRemoved()" (videoBlacklisted)=
"onVideoBlacklisted()" (videoUnblacklisted)=
"onVideoUnblacklisted()"
55 ></my-video-actions-dropdown>