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