]>
Commit | Line | Data |
---|---|---|
3a0fb65c | 1 | <div class="video-miniature" [ngClass]="{ 'display-as-row': displayAsRow }" (mouseenter)="loadActions()"> |
b7819090 C |
2 | <my-video-thumbnail |
3 | [video]="video" [nsfw]="isVideoBlur" | |
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"> | |
12 | <a | |
13 | tabindex="-1" | |
14 | class="video-miniature-name" | |
15 | [routerLink]="[ '/videos/watch', video.uuid ]" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }" | |
9b82d49d | 16 | >{{ video.name }}</a> |
3a0fb65c C |
17 | |
18 | <span class="video-miniature-created-at-views"> | |
e8050208 | 19 | <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle> |
9ea65414 C |
20 | |
21 | <span class="views"> | |
3921166d | 22 | <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container> |
9270ccf6 | 23 | <ng-container i18n *ngIf="displayOptions.views">{video.views, plural, =1 {1 view} other {{{ video.views | myNumberFormatter }} views}}</ng-container> |
9ea65414 | 24 | </span> |
3a0fb65c C |
25 | </span> |
26 | ||
27 | <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/accounts', video.byAccount ]"> | |
28 | {{ video.byAccount }} | |
29 | </a> | |
30 | <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerVideoChannel()" class="video-miniature-channel" [routerLink]="[ '/video-channels', video.byVideoChannel ]"> | |
31 | {{ video.byVideoChannel }} | |
32 | </a> | |
33 | ||
34 | <div class="video-info-privacy"> | |
35 | <ng-container *ngIf="displayOptions.privacyText">{{ video.privacy.label }}</ng-container> | |
dedc7abb | 36 | <ng-container *ngIf="displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> - </ng-container> |
3a0fb65c C |
37 | <ng-container *ngIf="displayOptions.state">{{ getStateLabel(video) }}</ng-container> |
38 | </div> | |
39 | ||
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> | |
43 | </div> | |
44 | ||
45 | <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw"> | |
46 | Sensitive | |
47 | </div> | |
e2409062 C |
48 | </div> |
49 | ||
3a0fb65c | 50 | <div class="video-actions"> |
14aa8556 | 51 | <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 --> |
3a0fb65c | 52 | <my-video-actions-dropdown |
a6d5ff76 | 53 | *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto" |
3a0fb65c C |
54 | (videoRemoved)="onVideoRemoved()" (videoBlacklisted)="onVideoBlacklisted()" (videoUnblacklisted)="onVideoUnblacklisted()" |
55 | ></my-video-actions-dropdown> | |
e2409062 | 56 | </div> |
501bc6c2 C |
57 | </div> |
58 | </div> |