]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-video-miniature/abstract-video-list.html
Put feed url as link
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-miniature / abstract-video-list.html
CommitLineData
3a0fb65c 1<div class="margin-content">
017c3dca 2 <div class="videos-header">
c9e3565d 3 <h1 *ngIf="titlePage" class="title-page title-page-single">
9b4b15f9
AB
4 <div placement="bottom" [ngbTooltip]="titleTooltip" container="body">
5 {{ titlePage }}
6 </div>
c9e3565d 7 </h1>
9b4b15f9 8
2d011d94
RK
9 <div class="action-block">
10 <my-feed *ngIf="titlePage" [syndicationItems]="syndicationItems"></my-feed>
afff310e
RK
11 <ng-container *ngFor="let action of actions">
12 <a *ngIf="action.routerLink" class="ml-2" [routerLink]="action.routerLink" routerLinkActive="active">
13 <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container>
14 </a>
7af5ded4
C
15
16 <a *ngIf="!action.routerLink && !action.href && action.click" class="ml-2" (click)="action.click($event)" (key.enter)="action.click($event)">
afff310e
RK
17 <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container>
18 </a>
7af5ded4
C
19
20 <a *ngIf="!action.routerLink && action.href && action.click" class="ml-2" (click)="action.click($event)" (key.enter)="action.click($event)" [href]="action.href">
afff310e
RK
21 <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container>
22 </a>
23
24 <ng-template #actionContent let-action>
25 <my-button *ngIf="!action.justIcon" [icon]="action.iconName" [label]="action.label"></my-button>
26 <my-button *ngIf="action.justIcon" [icon]="action.iconName" [ngbTooltip]="action.label"></my-button>
27 </ng-template>
28 </ng-container>
13adf228 29 </div>
017c3dca
C
30
31 <div class="moderation-block" *ngIf="displayModerationBlock">
ea7337cf 32 <div class="c-hand" ngbDropdown placement="bottom-right auto">
2b587cad
RK
33 <my-global-icon iconName="cog" ngbDropdownToggle></my-global-icon>
34
35 <div role="menu" class="dropdown-menu" ngbDropdownMenu>
36 <div class="dropdown-item">
37 <my-peertube-checkbox
38 (change)="toggleModerationDisplay()"
0aa52e17 39 inputName="display-unlisted-private" i18n-labelText labelText="Display all videos (private, unlisted or not yet published)"
2b587cad
RK
40 ></my-peertube-checkbox>
41 </div>
42 </div>
43 </div>
017c3dca 44 </div>
c30745f3 45 </div>
cf20596c 46
e6122097 47 <div class="no-results" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">No results.</div>
c30745f3 48 <div
ad453580 49 myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()"
489290b8 50 class="videos"
bddab65a 51 >
34c7f429 52 <ng-container *ngFor="let video of videos; trackBy: videoById;">
c9e3565d 53 <h2 class="date-title" *ngIf="getCurrentGroupedDateLabel(video)">
34c7f429 54 {{ getCurrentGroupedDateLabel(video) }}
c9e3565d 55 </h2>
34c7f429 56
cf78883c
C
57 <div class="video-wrapper">
58 <my-video-miniature
59 [fitWidth]="true"
5c20a455 60 [video]="video" [user]="userMiniature" [ownerDisplayType]="ownerDisplayType"
cf78883c
C
61 [displayVideoActions]="displayVideoActions" [displayOptions]="displayOptions"
62 (videoBlocked)="removeVideoFromArray(video)" (videoRemoved)="removeVideoFromArray(video)"
63 >
64 </my-video-miniature>
65 </div>
34c7f429 66 </ng-container>
c30745f3 67 </div>
32294074 68</div>