]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/recommendations/recommended-videos.component.html
Use default nsfw instance policy for search index
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / recommendations / recommended-videos.component.html
index 5b5951f99a322f59bc5bd6a1d3c8179435feec0d..a40266028996a414b8751db997aa079e2010802a 100644 (file)
@@ -1,12 +1,24 @@
 <div class="other-videos">
   <ng-container *ngIf="hasVideos$ | async">
-    <div i18n class="title-page title-page-single">
-      Other videos
+    <div class="title-page-container">
+      <div i18n class="title-page title-page-single">
+        Other videos
+      </div>
+      <div *ngIf="!playlist" class="title-page-autoplay"
+        [ngbTooltip]="autoPlayNextVideoTooltip" placement="bottom-right auto"
+      >
+        <span i18n>AUTOPLAY</span>
+        <p-inputSwitch class="small" [(ngModel)]="autoPlayNextVideo" (ngModelChange)="switchAutoPlayNextVideo()"></p-inputSwitch>
+      </div>
     </div>
 
-    <div *ngFor="let video of (videos$ | async)">
-      <my-video-miniature [video]="video" [user]="user" (videoBlacklisted)="onVideoRemoved()" (videoRemoved)="onVideoRemoved()">
+    <ng-container *ngFor="let video of (videos$ | async); let i = index; let length = count">
+      <my-video-miniature 
+        [displayOptions]="displayOptions" [video]="video" [user]="user"
+        (videoBlocked)="onVideoRemoved()" (videoRemoved)="onVideoRemoved()">
       </my-video-miniature>
-    </div>
+      
+      <hr *ngIf="!playlist && i == 0 && length > 1" />
+    </ng-container>
   </ng-container>
 </div>