]>
Commit | Line | Data |
---|---|---|
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> | |
15 | <a *ngIf="!action.routerLink && action.click && !action.clipboard" class="ml-2" (click)="action.click()" (key.enter)="action.click()"> | |
16 | <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container> | |
17 | </a> | |
18 | <a *ngIf="!action.routerLink && !action.click && action.clipboard" class="ml-2" [cdkCopyToClipboard]="action.clipboard"> | |
19 | <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container> | |
20 | </a> | |
21 | <a *ngIf="!action.routerLink && action.click && action.clipboard" class="ml-2" (click)="action.click()" (key.enter)="action.click()" [cdkCopyToClipboard]="action.clipboard"> | |
22 | <ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container> | |
23 | </a> | |
24 | ||
25 | <ng-template #actionContent let-action> | |
26 | <my-button *ngIf="!action.justIcon" [icon]="action.iconName" [label]="action.label"></my-button> | |
27 | <my-button *ngIf="action.justIcon" [icon]="action.iconName" [ngbTooltip]="action.label"></my-button> | |
28 | </ng-template> | |
29 | </ng-container> | |
13adf228 | 30 | </div> |
017c3dca C |
31 | |
32 | <div class="moderation-block" *ngIf="displayModerationBlock"> | |
ea7337cf | 33 | <div class="c-hand" ngbDropdown placement="bottom-right auto"> |
2b587cad RK |
34 | <my-global-icon iconName="cog" ngbDropdownToggle></my-global-icon> |
35 | ||
36 | <div role="menu" class="dropdown-menu" ngbDropdownMenu> | |
37 | <div class="dropdown-item"> | |
38 | <my-peertube-checkbox | |
39 | (change)="toggleModerationDisplay()" | |
0aa52e17 | 40 | inputName="display-unlisted-private" i18n-labelText labelText="Display all videos (private, unlisted or not yet published)" |
2b587cad RK |
41 | ></my-peertube-checkbox> |
42 | </div> | |
43 | </div> | |
44 | </div> | |
017c3dca | 45 | </div> |
c30745f3 | 46 | </div> |
cf20596c | 47 | |
e6122097 | 48 | <div class="no-results" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">No results.</div> |
c30745f3 | 49 | <div |
ad453580 | 50 | myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()" |
489290b8 | 51 | class="videos" |
bddab65a | 52 | > |
34c7f429 | 53 | <ng-container *ngFor="let video of videos; trackBy: videoById;"> |
c9e3565d | 54 | <h2 class="date-title" *ngIf="getCurrentGroupedDateLabel(video)"> |
34c7f429 | 55 | {{ getCurrentGroupedDateLabel(video) }} |
c9e3565d | 56 | </h2> |
34c7f429 | 57 | |
cf78883c C |
58 | <div class="video-wrapper"> |
59 | <my-video-miniature | |
60 | [fitWidth]="true" | |
5c20a455 | 61 | [video]="video" [user]="userMiniature" [ownerDisplayType]="ownerDisplayType" |
cf78883c C |
62 | [displayVideoActions]="displayVideoActions" [displayOptions]="displayOptions" |
63 | (videoBlocked)="removeVideoFromArray(video)" (videoRemoved)="removeVideoFromArray(video)" | |
64 | > | |
65 | </my-video-miniature> | |
66 | </div> | |
34c7f429 | 67 | </ng-container> |
c30745f3 | 68 | </div> |
32294074 | 69 | </div> |