]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-video-miniature/video-miniature.component.html
Add contained in playlists badges gap
[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" [inheritParentCSS]="true"
28 [title]="video.name" class="video-miniature-name" className="ellipsis-multiline-2" [ngClass]="{ 'blur-filter': isVideoBlur }"
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 *ngIf="displayOptions.by" class="video-miniature-account" [routerLink]="[ '/c', video.byVideoChannel ]">
44 <ng-container *ngIf="displayOwnerAccount()">{{ authorAccount }}</ng-container>
45 <ng-container *ngIf="displayOwnerVideoChannel()">{{ authorChannel }}</ng-container>
46 </a>
47
48 <div class="video-info-privacy">
49 <ng-container *ngIf="displayOptions.privacyText">{{ video.privacy.label }}</ng-container>
50 <ng-container *ngIf="displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> - </ng-container>
51 <ng-container *ngIf="displayOptions.state">{{ getStateLabel(video) }}</ng-container>
52 </div>
53
54 <div *ngIf="containedInPlaylists" class="contained-in-playlists">
55 <a *ngFor="let playlist of containedInPlaylists" class="pt-badge badge-secondary" [routerLink]="['/w/p/', playlist.playlistShortUUID]">
56 {{ playlist.playlistDisplayName }}
57 </a>
58 </div>
59 </div>
60 </div>
61
62 <div *ngIf="displayOptions.blacklistInfo && video.blacklisted" class="video-info-blocked">
63 <span class="blocked-label" i18n>Blocked</span>
64 <span class="blocked-reason" *ngIf="video.blacklistedReason">{{ video.blacklistedReason }}</span>
65 </div>
66
67 <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw">
68 Sensitive
69 </div>
70 </div>
71
72 <div class="video-actions">
73 <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 -->
74 <my-video-actions-dropdown
75 *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto"
76 (videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" (videoAccountMuted)="onVideoAccountMuted()"
77 ></my-video-actions-dropdown>
78 </div>
79 </div>
80 </div>