]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.html
Case insensitive search on tags
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-playlist / video-playlist-element-miniature.component.html
CommitLineData
e2f01c47
C
1<div class="video" [ngClass]="{ playing: playing }">
2 <a [routerLink]="buildRouterLink()" [queryParams]="buildRouterQuery()">
3 <div class="position">
4 <my-global-icon *ngIf="playing" iconName="play"></my-global-icon>
bce47964 5 <ng-container *ngIf="!playing">{{ position }}</ng-container>
e2f01c47
C
6 </div>
7
8 <my-video-thumbnail
bfbd9128
C
9 *ngIf="playlistElement.video"
10 [video]="playlistElement.video" [nsfw]="isVideoBlur(playlistElement.video)"
0bdad52f 11 [videoRouterLink]="buildRouterLink()" [queryParams]="buildRouterQuery()"
e2f01c47
C
12 ></my-video-thumbnail>
13
bfbd9128
C
14 <div class="fake-thumbnail" *ngIf="!playlistElement.video"></div>
15
e2f01c47 16 <div class="video-info">
bfbd9128
C
17 <ng-container *ngIf="playlistElement.video">
18 <a tabindex="-1" class="video-info-name"
19 [routerLink]="buildRouterLink()" [queryParams]="buildRouterQuery()"
20 [attr.title]="playlistElement.video.name"
21 >{{ playlistElement.video.name }}</a>
22
71887396 23 <a *ngIf="accountLink" tabindex="-1" class="video-info-account" [routerLink]="[ '/a', playlistElement.video.byAccount ]">
bfbd9128
C
24 {{ playlistElement.video.byAccount }}
25 </a>
26 <span *ngIf="!accountLink" tabindex="-1" class="video-info-account">{{ playlistElement.video.byAccount }}</span>
e2f01c47 27
bfbd9128
C
28 <span tabindex="-1" class="video-info-timestamp">{{ formatTimestamp(playlistElement) }}</span>
29 </ng-container>
e2f01c47 30
bfbd9128
C
31 <span *ngIf="!playlistElement.video" class="video-info-name">
32 <ng-container i18n *ngIf="isUnavailable(playlistElement)">Unavailable</ng-container>
33 <ng-container i18n *ngIf="isPrivate(playlistElement)">Private</ng-container>
34 <ng-container i18n *ngIf="isDeleted(playlistElement)">Deleted</ng-container>
35 </span>
e2f01c47
C
36 </div>
37 </a>
38
17119e4a 39 <my-edit-button *ngIf="owned && touchScreenEditButton" [routerLink]="[ '/my-library', 'video-playlists', playlist.uuid ]"></my-edit-button>
bedf0e60 40
8b57efbf
C
41 <div *ngIf="owned" class="more dropdown-root" ngbDropdown #moreDropdown="ngbDropdown" placement="left auto"
42 (openChange)="onDropdownOpenChange()" autoClose="outside" container="body"
bfbd9128 43 >
e2f01c47
C
44 <my-global-icon iconName="more-vertical" ngbDropdownToggle role="button" class="icon-more" (click)="$event.preventDefault()"></my-global-icon>
45
46 <div ngbDropdownMenu>
bfbd9128
C
47 <ng-container *ngIf="playlistElement.video">
48 <div class="dropdown-item" (click)="toggleDisplayTimestampsOptions($event, playlistElement)">
6ad971d5 49 <my-global-icon iconName="edit" aria-hidden="true"></my-global-icon>
bfbd9128
C
50 <ng-container i18n>Edit starts/stops at</ng-container>
51 </div>
e2f01c47 52
bfbd9128
C
53 <div class="timestamp-options" *ngIf="displayTimestampOptions">
54 <div>
55 <my-peertube-checkbox
56 inputName="startAt" [(ngModel)]="timestampOptions.startTimestampEnabled"
57 i18n-labelText labelText="Start at"
58 ></my-peertube-checkbox>
e2f01c47 59
bfbd9128
C
60 <my-timestamp-input
61 [timestamp]="timestampOptions.startTimestamp"
62 [maxTimestamp]="playlistElement.video.duration"
63 [disabled]="!timestampOptions.startTimestampEnabled"
64 [(ngModel)]="timestampOptions.startTimestamp"
65 ></my-timestamp-input>
66 </div>
e2f01c47 67
bfbd9128
C
68 <div>
69 <my-peertube-checkbox
70 inputName="stopAt" [(ngModel)]="timestampOptions.stopTimestampEnabled"
71 i18n-labelText labelText="Stop at"
72 ></my-peertube-checkbox>
e2f01c47 73
bfbd9128
C
74 <my-timestamp-input
75 [timestamp]="timestampOptions.stopTimestamp"
76 [maxTimestamp]="playlistElement.video.duration"
77 [disabled]="!timestampOptions.stopTimestampEnabled"
78 [(ngModel)]="timestampOptions.stopTimestamp"
79 ></my-timestamp-input>
80 </div>
e2f01c47 81
bfbd9128
C
82 <input type="submit" i18n-value value="Save" (click)="updateTimestamps(playlistElement)">
83 </div>
84 </ng-container>
e2f01c47 85
bfbd9128 86 <span class="dropdown-item" (click)="removeFromPlaylist(playlistElement)">
6ad971d5 87 <my-global-icon iconName="delete" aria-hidden="true"></my-global-icon>
bedf0e60 88 <ng-container i18n>Delete from {{ playlist?.displayName }}</ng-container>
89 </span>
e2f01c47
C
90 </div>
91 </div>
92</div>