]>
Commit | Line | Data |
---|---|---|
e66883b3 | 1 | <div class="video-miniature" [ngClass]="{ 'display-as-row': displayAsRow, 'fit-width': fitWidth }" (mouseenter)="loadActions()"> |
b7819090 | 2 | <my-video-thumbnail |
5fb2e288 | 3 | [video]="video" [nsfw]="isVideoBlur" [routerLink]="videoLink" |
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"> | |
cf78883c C |
18 | <a |
19 | tabindex="-1" | |
20 | class="video-miniature-name" | |
21 | [routerLink]="videoLink" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }" | |
22 | >{{ video.name }}</a> | |
23 | ||
c2caa99b RK |
24 | <span class="video-miniature-created-at-views"> |
25 | <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle> | |
cf78883c | 26 | |
c2caa99b RK |
27 | <span class="views"> |
28 | <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container> | |
29 | <ng-container i18n *ngIf="displayOptions.views">{video.views, plural, =1 {1 view} other {{{ video.views | myNumberFormatter }} views}}</ng-container> | |
30 | </span> | |
31 | </span> | |
cf78883c | 32 | |
c2caa99b RK |
33 | <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/accounts', video.byAccount ]"> |
34 | {{ video.byAccount }} | |
35 | </a> | |
36 | <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerVideoChannel()" class="video-miniature-channel" [routerLink]="[ '/video-channels', video.byVideoChannel ]"> | |
37 | {{ video.byVideoChannel }} | |
38 | </a> | |
cf78883c | 39 | |
c2caa99b RK |
40 | <div class="video-info-privacy"> |
41 | <ng-container *ngIf="displayOptions.privacyText">{{ video.privacy.label }}</ng-container> | |
42 | <ng-container *ngIf="displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> - </ng-container> | |
43 | <ng-container *ngIf="displayOptions.state">{{ getStateLabel(video) }}</ng-container> | |
44 | </div> | |
45 | </div> | |
3a0fb65c C |
46 | </div> |
47 | ||
5baee5fc RK |
48 | <div *ngIf="displayOptions.blacklistInfo && video.blacklisted" class="video-info-blocked"> |
49 | <span class="blocked-label" i18n>Blocked</span> | |
50 | <span class="blocked-reason" *ngIf="video.blockedReason">{{ video.blockedReason }}</span> | |
3a0fb65c C |
51 | </div> |
52 | ||
53 | <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw"> | |
54 | Sensitive | |
55 | </div> | |
e2409062 C |
56 | </div> |
57 | ||
3a0fb65c | 58 | <div class="video-actions"> |
14aa8556 | 59 | <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 --> |
3a0fb65c | 60 | <my-video-actions-dropdown |
a6d5ff76 | 61 | *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto" |
5baee5fc | 62 | (videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" |
3a0fb65c | 63 | ></my-video-actions-dropdown> |
e2409062 | 64 | </div> |
501bc6c2 C |
65 | </div> |
66 | </div> |