]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video/video-miniature.component.html
Use form-control to display box-shadow on form inputs/selects upon focus
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-miniature.component.html
CommitLineData
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)"
5 ></my-video-thumbnail>
501bc6c2 6
3a0fb65c
C
7 <div class="video-bottom">
8 <div class="video-miniature-information">
9 <a
10 tabindex="-1"
11 class="video-miniature-name"
12 [routerLink]="[ '/videos/watch', video.uuid ]" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }"
9b82d49d 13 >{{ video.name }}</a>
3a0fb65c
C
14
15 <span class="video-miniature-created-at-views">
e8050208 16 <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle>
9ea65414
C
17
18 <span class="views">
3921166d 19 <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container>
9270ccf6 20 <ng-container i18n *ngIf="displayOptions.views">{video.views, plural, =1 {1 view} other {{{ video.views | myNumberFormatter }} views}}</ng-container>
9ea65414 21 </span>
9b82d49d
RK
22
23 <ng-container *ngIf="displayOptions.privacyLabel">
24 <span *ngIf="isUnlistedVideo()" class="badge badge-warning ml-1" i18n>Unlisted</span>
25 <span *ngIf="isPrivateVideo()" class="badge badge-danger ml-1" i18n>Private</span>
26 </ng-container>
3a0fb65c
C
27 </span>
28
29 <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/accounts', video.byAccount ]">
30 {{ video.byAccount }}
31 </a>
32 <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerVideoChannel()" class="video-miniature-channel" [routerLink]="[ '/video-channels', video.byVideoChannel ]">
33 {{ video.byVideoChannel }}
34 </a>
35
36 <div class="video-info-privacy">
37 <ng-container *ngIf="displayOptions.privacyText">{{ video.privacy.label }}</ng-container>
dedc7abb 38 <ng-container *ngIf="displayOptions.privacyText && displayOptions.state && getStateLabel(video)"> - </ng-container>
3a0fb65c
C
39 <ng-container *ngIf="displayOptions.state">{{ getStateLabel(video) }}</ng-container>
40 </div>
41
42 <div *ngIf="displayOptions.blacklistInfo && video.blacklisted" class="video-info-blacklisted">
43 <span class="blacklisted-label" i18n>Blacklisted</span>
44 <span class="blacklisted-reason" *ngIf="video.blacklistedReason">{{ video.blacklistedReason }}</span>
45 </div>
46
47 <div i18n *ngIf="displayOptions.nsfw && video.nsfw" class="video-info-nsfw">
48 Sensitive
49 </div>
e2409062
C
50 </div>
51
3a0fb65c 52 <div class="video-actions">
14aa8556 53 <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 -->
3a0fb65c 54 <my-video-actions-dropdown
a6d5ff76 55 *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto"
3a0fb65c
C
56 (videoRemoved)="onVideoRemoved()" (videoBlacklisted)="onVideoBlacklisted()" (videoUnblacklisted)="onVideoUnblacklisted()"
57 ></my-video-actions-dropdown>
e2409062 58 </div>
501bc6c2
C
59 </div>
60</div>