]>
Commit | Line | Data |
---|---|---|
0f7407d9 | 1 | <div class="video-miniature" [ngClass]="getClasses()" (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"> | |
55da0958 | 12 | <div class="d-flex video-miniature-meta"> |
746018f6 C |
13 | <my-actor-avatar |
14 | *ngIf="displayOptions.avatar && displayOwnerVideoChannel()" [title]="channelLinkTitle" | |
06ec4bdd | 15 | [channel]="video.channel" [size]="actorImageSize" [internalHref]="[ '/video-channels', video.byVideoChannel ]" |
746018f6 | 16 | ></my-actor-avatar> |
f1ac6348 | 17 | |
746018f6 | 18 | <my-actor-avatar |
f1ac6348 | 19 | *ngIf="displayOptions.avatar && displayOwnerAccount()" [title]="channelLinkTitle" |
06ec4bdd | 20 | [account]="video.account" [size]="actorImageSize" [internalHref]="[ '/video-channels', video.byVideoChannel ]" |
746018f6 | 21 | ></my-actor-avatar> |
7dfe3528 RK |
22 | |
23 | <div class="w-100 d-flex flex-column"> | |
0bdad52f C |
24 | <a *ngIf="!videoHref" tabindex="-1" class="video-miniature-name" |
25 | [routerLink]="videoRouterLink" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }" | |
26 | >{{ video.name }}</a> | |
27 | ||
28 | <a *ngIf="videoHref" tabindex="-1" class="video-miniature-name" | |
29 | [href]="videoHref" [target]="videoTarget" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }" | |
cf78883c C |
30 | >{{ video.name }}</a> |
31 | ||
c2caa99b RK |
32 | <span class="video-miniature-created-at-views"> |
33 | <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle> | |
cf78883c | 34 | |
4ec25ae8 | 35 | <span class="views" [title]="video.getExactNumberOfViews()"> |
c2caa99b | 36 | <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container> |
5cac83a7 C |
37 | |
38 | <my-video-views-counter *ngIf="displayOptions.views" [video]="video"></my-video-views-counter> | |
c2caa99b RK |
39 | </span> |
40 | </span> | |
cf78883c | 41 | |
c8e80d14 | 42 | <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/video-channels', video.byVideoChannel ]"> |
c2caa99b RK |
43 | {{ video.byAccount }} |
44 | </a> | |
45 | <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerVideoChannel()" class="video-miniature-channel" [routerLink]="[ '/video-channels', video.byVideoChannel ]"> | |
46 | {{ video.byVideoChannel }} | |
47 | </a> | |
cf78883c | 48 | |
c2caa99b RK |
49 | <div class="video-info-privacy"> |
50 | <ng-container *ngIf="displayOptions.privacyText">{{ video.privacy.label }}</ng-container> | |
51 | <ng-container *ngIf="displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> - </ng-container> | |
52 | <ng-container *ngIf="displayOptions.state">{{ getStateLabel(video) }}</ng-container> | |
53 | </div> | |
54 | </div> | |
3a0fb65c C |
55 | </div> |
56 | ||
5baee5fc RK |
57 | <div *ngIf="displayOptions.blacklistInfo && video.blacklisted" class="video-info-blocked"> |
58 | <span class="blocked-label" i18n>Blocked</span> | |
59 | <span class="blocked-reason" *ngIf="video.blockedReason">{{ video.blockedReason }}</span> | |
3a0fb65c C |
60 | </div> |
61 | ||
62 | <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw"> | |
63 | Sensitive | |
64 | </div> | |
e2409062 C |
65 | </div> |
66 | ||
3a0fb65c | 67 | <div class="video-actions"> |
14aa8556 | 68 | <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 --> |
3a0fb65c | 69 | <my-video-actions-dropdown |
a6d5ff76 | 70 | *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto" |
d473fd94 | 71 | (videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" (videoAccountMuted)="onVideoAccountMuted()" |
3a0fb65c | 72 | ></my-video-actions-dropdown> |
e2409062 | 73 | </div> |
501bc6c2 C |
74 | </div> |
75 | </div> |