aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/video-miniature.component.html
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-04-11 14:47:13 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-04-11 16:05:50 +0200
commit62eacb420945020d354037c5d5cdf2885529f52a (patch)
treee8697b250b2f81e56b722018bcd0c958c1206c06 /client/src/app/shared/video/video-miniature.component.html
parent58e1765affe6206fcae797290e4f5d8460dffea9 (diff)
downloadPeerTube-62eacb420945020d354037c5d5cdf2885529f52a.tar.gz
PeerTube-62eacb420945020d354037c5d5cdf2885529f52a.tar.zst
PeerTube-62eacb420945020d354037c5d5cdf2885529f52a.zip
Place private/unlisted labels in thumbnail instead of miniature
Diffstat (limited to 'client/src/app/shared/video/video-miniature.component.html')
-rw-r--r--client/src/app/shared/video/video-miniature.component.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/client/src/app/shared/video/video-miniature.component.html b/client/src/app/shared/video/video-miniature.component.html
index 6a8558de3..8e948ce42 100644
--- a/client/src/app/shared/video/video-miniature.component.html
+++ b/client/src/app/shared/video/video-miniature.component.html
@@ -2,7 +2,10 @@
2 <my-video-thumbnail 2 <my-video-thumbnail
3 [video]="video" [nsfw]="isVideoBlur" 3 [video]="video" [nsfw]="isVideoBlur"
4 [displayWatchLaterPlaylist]="isWatchLaterPlaylistDisplayed()" [inWatchLaterPlaylist]="inWatchLaterPlaylist" (watchLaterClick)="onWatchLaterClick($event)" 4 [displayWatchLaterPlaylist]="isWatchLaterPlaylistDisplayed()" [inWatchLaterPlaylist]="inWatchLaterPlaylist" (watchLaterClick)="onWatchLaterClick($event)"
5 ></my-video-thumbnail> 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>
6 9
7 <div class="video-bottom"> 10 <div class="video-bottom">
8 <div class="video-miniature-information"> 11 <div class="video-miniature-information">
@@ -19,11 +22,6 @@
19 <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container> 22 <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container>
20 <ng-container i18n *ngIf="displayOptions.views">{video.views, plural, =1 {1 view} other {{{ video.views | myNumberFormatter }} views}}</ng-container> 23 <ng-container i18n *ngIf="displayOptions.views">{video.views, plural, =1 {1 view} other {{{ video.views | myNumberFormatter }} views}}</ng-container>
21 </span> 24 </span>
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>
27 </span> 25 </span>
28 26
29 <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/accounts', video.byAccount ]"> 27 <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/accounts', video.byAccount ]">