]>
Commit | Line | Data |
---|---|---|
1 | <div class="margin-content"> | |
2 | <div class="videos-header"> | |
3 | <h1 *ngIf="displayTitle" class="title" placement="bottom" [ngbTooltip]="titleTooltip" container="body"> | |
4 | {{ title }} | |
5 | </h1> | |
6 | ||
7 | <div *ngIf="syndicationItems" [ngClass]="{ 'no-title': !displayTitle }" class="title-subscription"> | |
8 | <ng-container i18n>Subscribe to RSS feed "{{ title }}"</ng-container> | |
9 | ||
10 | <my-feed [syndicationItems]="syndicationItems"></my-feed> | |
11 | </div> | |
12 | ||
13 | <div class="action-block"> | |
14 | <ng-container *ngFor="let action of headerActions"> | |
15 | <a *ngIf="action.routerLink" class="ml-2" [routerLink]="action.routerLink" routerLinkActive="active"> | |
16 | <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container> | |
17 | </a> | |
18 | ||
19 | <a *ngIf="!action.routerLink && !action.href && action.click" class="ml-2" (click)="action.click($event)" (key.enter)="action.click($event)"> | |
20 | <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container> | |
21 | </a> | |
22 | ||
23 | <a *ngIf="!action.routerLink && action.href && action.click" class="ml-2" (click)="action.click($event)" (key.enter)="action.click($event)" [href]="action.href"> | |
24 | <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container> | |
25 | </a> | |
26 | ||
27 | <ng-template #actionContent let-action> | |
28 | <my-button *ngIf="!action.justIcon" [icon]="action.iconName" [label]="action.label"></my-button> | |
29 | <my-button *ngIf="action.justIcon" [icon]="action.iconName" [ngbTooltip]="action.label"></my-button> | |
30 | </ng-template> | |
31 | </ng-container> | |
32 | </div> | |
33 | </div> | |
34 | ||
35 | <my-video-filters-header | |
36 | *ngIf="displayFilters" [displayModerationBlock]="displayModerationBlock" [hideScope]="hideScopeFilter" | |
37 | [filters]="filters" | |
38 | (filtersChanged)="onFiltersChanged(true)" | |
39 | ></my-video-filters-header> | |
40 | ||
41 | <div class="no-results" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">No results.</div> | |
42 | <div | |
43 | myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()" | |
44 | [setAngularState]="true" [parentDisabled]="disabled" | |
45 | class="videos" [ngClass]="{ 'display-as-row': displayAsRow }" | |
46 | > | |
47 | <ng-container *ngFor="let video of videos; trackBy: videoById;"> | |
48 | <h2 class="date-title" *ngIf="getCurrentGroupedDateLabel(video)"> | |
49 | {{ getCurrentGroupedDateLabel(video) }} | |
50 | </h2> | |
51 | ||
52 | <div class="video-wrapper"> | |
53 | <my-video-miniature | |
54 | [video]="video" [user]="userMiniature" [displayAsRow]="displayAsRow" | |
55 | [displayVideoActions]="displayVideoActions" [displayOptions]="displayOptions" | |
56 | (videoBlocked)="removeVideoFromArray(video)" (videoRemoved)="removeVideoFromArray(video)" | |
57 | > | |
58 | </my-video-miniature> | |
59 | </div> | |
60 | </ng-container> | |
61 | </div> | |
62 | </div> |