Add video recomandation by tags (#1001)
[oweals/peertube.git] / client / src / app / shared / video / video-feed.component.html
index 7733ef221c244b5f36a67d52abda07b4240d4040..16116ba88aa15b29046a79806c731c5dbb6aa1a5 100644 (file)
@@ -1,14 +1,10 @@
 <div class="video-feed">
-  <span *ngIf="(syndicationItems | myObjectLength) >= 1" class="icon icon-syndication" 
-    [popover]="feedsList"
-    placement="bottom"
-    [outsideClick]="true">
-  </span>
+  <span
+    *ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" [autoClose]="true" placement="bottom"
+    class="icon icon-syndication" role="button"
+  ></span>
 
   <ng-template #feedsList>
-    <div *ngFor="let key of syndicationItems | keys">
-      <a [href]="syndicationItems[key]">{{ key }}</a>
-    </div>
+    <a *ngFor="let item of syndicationItems" [href]="item.url" target="_blank" rel="noopener noreferrer">{{ item.label }}</a>
   </ng-template>
-</div>
-  
\ No newline at end of file
+</div>
\ No newline at end of file