]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - 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
CommitLineData
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 13 <my-actor-avatar
d4f0b2ec 14 *ngIf="displayOptions.avatar && displayOwnerVideoChannel() && !displayAsRow" [title]="channelLinkTitle"
87fdea2f 15 [actor]="video.channel" actorType="channel" [size]="actorImageSize" [internalHref]="[ '/c', video.byVideoChannel ]"
d0800f76 16 size="32"
746018f6 17 ></my-actor-avatar>
f1ac6348 18
746018f6 19 <my-actor-avatar
d4f0b2ec 20 *ngIf="displayOptions.avatar && displayOwnerAccount() && !displayAsRow" [title]="channelLinkTitle"
87fdea2f 21 [actor]="video.account" actorType="channel" [size]="actorImageSize" [internalHref]="[ '/c', video.byVideoChannel ]"
d0800f76 22 size="32"
746018f6 23 ></my-actor-avatar>
7dfe3528
RK
24
25 <div class="w-100 d-flex flex-column">
37a44fc9 26 <my-link
dc9c9500
C
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 }"
37a44fc9
C
29 >
30 {{ video.name }}
31 </my-link>
cf78883c 32
c2caa99b
RK
33 <span class="video-miniature-created-at-views">
34 <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle>
cf78883c 35
4ec25ae8 36 <span class="views" [title]="video.getExactNumberOfViews()">
c2caa99b 37 <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container>
5cac83a7
C
38
39 <my-video-views-counter *ngIf="displayOptions.views" [video]="video"></my-video-views-counter>
c2caa99b
RK
40 </span>
41 </span>
cf78883c 42
dc9c9500 43 <a *ngIf="displayOptions.by" class="video-miniature-account" [routerLink]="[ '/c', video.byVideoChannel ]">
343d1395
C
44 <ng-container *ngIf="displayOwnerAccount()">{{ authorAccount }}</ng-container>
45 <ng-container *ngIf="displayOwnerVideoChannel()">{{ authorChannel }}</ng-container>
c2caa99b 46 </a>
cf78883c 47
c2caa99b
RK
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>
38a3ccc7 53
b14e3c3d 54 <div *ngIf="containedInPlaylists" class="contained-in-playlists">
9589907c 55 <a *ngFor="let playlist of containedInPlaylists" class="pt-badge badge-secondary" [routerLink]="['/w/p/', playlist.playlistShortUUID]">
38a3ccc7 56 {{ playlist.playlistDisplayName }}
57 </a>
58 </div>
c2caa99b 59 </div>
3a0fb65c
C
60 </div>
61
5baee5fc
RK
62 <div *ngIf="displayOptions.blacklistInfo && video.blacklisted" class="video-info-blocked">
63 <span class="blocked-label" i18n>Blocked</span>
2760b454 64 <span class="blocked-reason" *ngIf="video.blacklistedReason">{{ video.blacklistedReason }}</span>
3a0fb65c
C
65 </div>
66
67 <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw">
68 Sensitive
69 </div>
e2409062
C
70 </div>
71
3a0fb65c 72 <div class="video-actions">
14aa8556 73 <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 -->
3a0fb65c 74 <my-video-actions-dropdown
a6d5ff76 75 *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto"
d473fd94 76 (videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" (videoAccountMuted)="onVideoAccountMuted()"
3a0fb65c 77 ></my-video-actions-dropdown>
e2409062 78 </div>
501bc6c2
C
79 </div>
80</div>