]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-video-miniature/video-miniature.component.html
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-miniature / video-miniature.component.html
1 <div class="video-miniature" [ngClass]="getClasses()" (mouseenter)="loadActions()">
2 <my-video-thumbnail
3 [video]="video" [nsfw]="isVideoBlur" [videoRouterLink]="videoRouterLink" [videoHref]="videoHref" [videoTarget]="videoTarget"
4 [displayWatchLaterPlaylist]="isWatchLaterPlaylistDisplayed()" [inWatchLaterPlaylist]="inWatchLaterPlaylist" (watchLaterClick)="onWatchLaterClick($event)"
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>
9
10 <div class="video-bottom">
11 <div class="video-miniature-information">
12 <div class="d-flex video-miniature-meta">
13 <my-actor-avatar
14 *ngIf="displayOptions.avatar && displayOwnerVideoChannel() && !displayAsRow" [title]="channelLinkTitle"
15 [actor]="video.channel" actorType="channel" [size]="actorImageSize" [internalHref]="[ '/c', video.byVideoChannel ]"
16 size="32"
17 ></my-actor-avatar>
18
19 <my-actor-avatar
20 *ngIf="displayOptions.avatar && displayOwnerAccount() && !displayAsRow" [title]="channelLinkTitle"
21 [actor]="video.account" actorType="channel" [size]="actorImageSize" [internalHref]="[ '/c', video.byVideoChannel ]"
22 size="32"
23 ></my-actor-avatar>
24
25 <div class="w-100 d-flex flex-column">
26 <my-link
27 [internalLink]="videoRouterLink" [href]="videoHref" [target]="videoTarget"
28 [title]="video.name"class="video-miniature-name" [ngClass]="{ 'blur-filter': isVideoBlur }" tabindex="-1"
29 >
30 {{ video.name }}
31 </my-link>
32
33 <span class="video-miniature-created-at-views">
34 <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle>
35
36 <span class="views" [title]="video.getExactNumberOfViews()">
37 <ng-container *ngIf="displayOptions.date && displayOptions.views"></ng-container>
38
39 <my-video-views-counter *ngIf="displayOptions.views" [video]="video"></my-video-views-counter>
40 </span>
41 </span>
42
43 <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/c', video.byVideoChannel ]">
44 {{ authorAccount }}
45 </a>
46 <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerVideoChannel()" class="video-miniature-channel" [routerLink]="[ '/c', video.byVideoChannel ]">
47 {{ authorChannel }}
48 </a>
49
50 <div class="video-info-privacy">
51 <ng-container *ngIf="displayOptions.privacyText">{{ video.privacy.label }}</ng-container>
52 <ng-container *ngIf="displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> - </ng-container>
53 <ng-container *ngIf="displayOptions.state">{{ getStateLabel(video) }}</ng-container>
54 </div>
55 </div>
56 </div>
57
58 <div *ngIf="displayOptions.blacklistInfo && video.blacklisted" class="video-info-blocked">
59 <span class="blocked-label" i18n>Blocked</span>
60 <span class="blocked-reason" *ngIf="video.blacklistedReason">{{ video.blacklistedReason }}</span>
61 </div>
62
63 <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw">
64 Sensitive
65 </div>
66 </div>
67
68 <div class="video-actions">
69 <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 -->
70 <my-video-actions-dropdown
71 *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto"
72 (videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" (videoAccountMuted)="onVideoAccountMuted()"
73 ></my-video-actions-dropdown>
74 </div>
75 </div>
76 </div>