]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video/video-miniature.component.html
smaller miniature average size in fluid grid, updated admin instructions for global...
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-miniature.component.html
CommitLineData
e66883b3 1<div class="video-miniature" [ngClass]="{ 'display-as-row': displayAsRow, 'fit-width': fitWidth }" (mouseenter)="loadActions()">
b7819090 2 <my-video-thumbnail
5fb2e288 3 [video]="video" [nsfw]="isVideoBlur" [routerLink]="videoLink"
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">
12 <a
13 tabindex="-1"
14 class="video-miniature-name"
5fb2e288 15 [routerLink]="videoLink" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }"
9b82d49d 16 >{{ video.name }}</a>
3a0fb65c 17
c2caa99b
RK
18 <div class="d-inline-flex">
19 <avatar-channel *ngIf="displayOptions.avatar" class="mr-1 pt-1" [video]="video" size="sm"></avatar-channel>
9ea65414 20
c2caa99b
RK
21 <div class="d-flex flex-column">
22 <span class="video-miniature-created-at-views">
23 <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle>
24
25 <span class="views">
26 <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container>
27 <ng-container i18n *ngIf="displayOptions.views">{video.views, plural, =1 {1 view} other {{{ video.views | myNumberFormatter }} views}}</ng-container>
28 </span>
29 </span>
30
31 <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/accounts', video.byAccount ]">
32 {{ video.byAccount }}
33 </a>
34 <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerVideoChannel()" class="video-miniature-channel" [routerLink]="[ '/video-channels', video.byVideoChannel ]">
35 {{ video.byVideoChannel }}
36 </a>
37
38 <div class="video-info-privacy">
39 <ng-container *ngIf="displayOptions.privacyText">{{ video.privacy.label }}</ng-container>
40 <ng-container *ngIf="displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> - </ng-container>
41 <ng-container *ngIf="displayOptions.state">{{ getStateLabel(video) }}</ng-container>
42 </div>
43 </div>
3a0fb65c
C
44 </div>
45
46 <div *ngIf="displayOptions.blacklistInfo && video.blacklisted" class="video-info-blacklisted">
47 <span class="blacklisted-label" i18n>Blacklisted</span>
48 <span class="blacklisted-reason" *ngIf="video.blacklistedReason">{{ video.blacklistedReason }}</span>
49 </div>
50
51 <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw">
52 Sensitive
53 </div>
e2409062
C
54 </div>
55
3a0fb65c 56 <div class="video-actions">
14aa8556 57 <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 -->
3a0fb65c 58 <my-video-actions-dropdown
a6d5ff76 59 *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto"
3a0fb65c
C
60 (videoRemoved)="onVideoRemoved()" (videoBlacklisted)="onVideoBlacklisted()" (videoUnblacklisted)="onVideoUnblacklisted()"
61 ></my-video-actions-dropdown>
e2409062 62 </div>
501bc6c2
C
63 </div>
64</div>