]>
Commit | Line | Data |
---|---|---|
3fba4b6b | 1 | <div class="no-results" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">No results.</div> |
693263e9 | 2 | |
ad453580 | 3 | <div myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()" class="videos"> |
8c6781e9 C |
4 | <div class="video" *ngFor="let video of videos; let i = index; trackBy: videoById"> |
5 | ||
693263e9 C |
6 | <div class="checkbox-container"> |
7 | <my-peertube-checkbox [inputName]="'video-check-' + video.id" [(ngModel)]="_selection[video.id]"></my-peertube-checkbox> | |
8 | </div> | |
9 | ||
c4a6f790 C |
10 | <my-video-miniature |
11 | [video]="video" [displayAsRow]="true" [displayOptions]="miniatureDisplayOptions" | |
12 | [displayVideoActions]="false" [ownerDisplayType]="ownerDisplayType" | |
241609f1 | 13 | [user]="user" |
c4a6f790 | 14 | ></my-video-miniature> |
693263e9 C |
15 | |
16 | <!-- Display only once --> | |
17 | <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0"> | |
18 | <div class="action-selection-mode-child"> | |
19 | <span i18n class="action-button action-button-cancel-selection" (click)="abortSelectionMode()"> | |
20 | Cancel | |
21 | </span> | |
22 | ||
23 | <ng-container *ngTemplateOutlet="globalButtonsTemplate"></ng-container> | |
24 | </div> | |
25 | </div> | |
26 | ||
27 | <ng-container *ngIf="isInSelectionMode() === false"> | |
28 | <ng-container *ngTemplateOutlet="rowButtonsTemplate; context: {$implicit: video}"></ng-container> | |
29 | </ng-container> | |
30 | </div> | |
31 | </div> |