]>
Commit | Line | Data |
---|---|---|
1 | <div class="other-videos" [ngClass]="{ 'display-as-row': displayAsRow }"> | |
2 | <ng-container *ngIf="hasVideos$ | async"> | |
3 | <div class="title-page-container"> | |
4 | <h2 i18n class="title-page">Other videos</h2> | |
5 | ||
6 | <div *ngIf="!playlist" class="title-page-autoplay" | |
7 | [ngbTooltip]="autoPlayNextVideoTooltip" placement="bottom-right auto" | |
8 | > | |
9 | <span i18n>AUTOPLAY</span> | |
10 | <my-input-switch class="small" inputName="autoplay-next-video" [(ngModel)]="autoPlayNextVideo" (ngModelChange)="switchAutoPlayNextVideo()"></my-input-switch> | |
11 | </div> | |
12 | </div> | |
13 | ||
14 | <ng-container *ngFor="let video of (videos$ | async); let i = index; let length = count"> | |
15 | <span i18n *ngIf="!playlist && i === 0 && length !== 0 && autoPlayNextVideo" class="title-page-next-video-label">Next video to be played</span> | |
16 | <my-video-miniature | |
17 | [displayOptions]="displayOptions" [video]="video" [user]="user" [displayAsRow]="displayAsRow" | |
18 | (videoBlocked)="onVideoRemoved()" (videoRemoved)="onVideoRemoved()" (videoAccountMuted)="onVideoRemoved()" | |
19 | actorImageSize="32" | |
20 | > | |
21 | </my-video-miniature> | |
22 | ||
23 | <hr *ngIf="!playlist && i === 0 && length > 1 && autoPlayNextVideo" /> | |
24 | </ng-container> | |
25 | </ng-container> | |
26 | </div> |