diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/shared/shared-video-miniature/videos-selection.component.html | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/videos-selection.component.html')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/videos-selection.component.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-video-miniature/videos-selection.component.html b/client/src/app/shared/shared-video-miniature/videos-selection.component.html new file mode 100644 index 000000000..44aa567b9 --- /dev/null +++ b/client/src/app/shared/shared-video-miniature/videos-selection.component.html | |||
@@ -0,0 +1,30 @@ | |||
1 | <div class="no-results" i18n *ngIf="pagination.totalItems === 0">No results.</div> | ||
2 | |||
3 | <div myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()" class="videos"> | ||
4 | <div class="video" *ngFor="let video of videos; let i = index; trackBy: videoById"> | ||
5 | |||
6 | <div class="checkbox-container"> | ||
7 | <my-peertube-checkbox [inputName]="'video-check-' + video.id" [(ngModel)]="_selection[video.id]"></my-peertube-checkbox> | ||
8 | </div> | ||
9 | |||
10 | <my-video-miniature | ||
11 | [video]="video" [displayAsRow]="true" [displayOptions]="miniatureDisplayOptions" | ||
12 | [displayVideoActions]="false" [ownerDisplayType]="ownerDisplayType" | ||
13 | ></my-video-miniature> | ||
14 | |||
15 | <!-- Display only once --> | ||
16 | <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0"> | ||
17 | <div class="action-selection-mode-child"> | ||
18 | <span i18n class="action-button action-button-cancel-selection" (click)="abortSelectionMode()"> | ||
19 | Cancel | ||
20 | </span> | ||
21 | |||
22 | <ng-container *ngTemplateOutlet="globalButtonsTemplate"></ng-container> | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <ng-container *ngIf="isInSelectionMode() === false"> | ||
27 | <ng-container *ngTemplateOutlet="rowButtonsTemplate; context: {$implicit: video}"></ng-container> | ||
28 | </ng-container> | ||
29 | </div> | ||
30 | </div> | ||