]>
Commit | Line | Data |
---|---|---|
1 | <div class="margin-content"> | |
2 | <div class="videos-header"> | |
3 | <h1 *ngIf="titlePage" class="title-page title-page-single"> | |
4 | <div placement="bottom" [ngbTooltip]="titleTooltip" container="body"> | |
5 | {{ titlePage }} | |
6 | </div> | |
7 | </h1> | |
8 | ||
9 | <div class="action-block"> | |
10 | <my-feed *ngIf="titlePage" [syndicationItems]="syndicationItems"></my-feed> | |
11 | <a [routerLink]="action.routerLink" routerLinkActive="active" *ngFor="let action of actions"> | |
12 | <my-button [icon]="action.iconName" [label]="action.label"></my-button> | |
13 | </a> | |
14 | </div> | |
15 | ||
16 | <div class="moderation-block" *ngIf="displayModerationBlock"> | |
17 | <div class="c-hand" ngbDropdown placement="bottom-right auto"> | |
18 | <my-global-icon iconName="cog" ngbDropdownToggle></my-global-icon> | |
19 | ||
20 | <div role="menu" class="dropdown-menu" ngbDropdownMenu> | |
21 | <div class="dropdown-item"> | |
22 | <my-peertube-checkbox | |
23 | (change)="toggleModerationDisplay()" | |
24 | inputName="display-unlisted-private" i18n-labelText labelText="Display unlisted and private videos" | |
25 | ></my-peertube-checkbox> | |
26 | </div> | |
27 | </div> | |
28 | </div> | |
29 | </div> | |
30 | </div> | |
31 | ||
32 | <div class="no-results" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">No results.</div> | |
33 | <div | |
34 | myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()" | |
35 | class="videos" | |
36 | > | |
37 | <ng-container *ngFor="let video of videos; trackBy: videoById;"> | |
38 | <h2 class="date-title" *ngIf="getCurrentGroupedDateLabel(video)"> | |
39 | {{ getCurrentGroupedDateLabel(video) }} | |
40 | </h2> | |
41 | ||
42 | <div class="video-wrapper"> | |
43 | <my-video-miniature | |
44 | [fitWidth]="true" | |
45 | [video]="video" [user]="userMiniature" [ownerDisplayType]="ownerDisplayType" | |
46 | [displayVideoActions]="displayVideoActions" [displayOptions]="displayOptions" | |
47 | (videoBlocked)="removeVideoFromArray(video)" (videoRemoved)="removeVideoFromArray(video)" | |
48 | > | |
49 | </my-video-miniature> | |
50 | </div> | |
51 | </ng-container> | |
52 | </div> | |
53 | </div> |