]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-account/my-account-videos/my-account-videos.component.html
Improve navigation sub-menu and tabs effects (#2971)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-videos / my-account-videos.component.html
1 <h1>
2 <my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
3 <ng-container i18n>My videos</ng-container><span class="badge badge-secondary"> {{ pagination.totalItems }}</span>
4 </h1>
5
6 <div class="videos-header">
7 <input type="text" placeholder="Search your videos" i18n-placeholder [(ngModel)]="videosSearch" (ngModelChange)="onVideosSearchChanged()" />
8 </div>
9
10 <my-videos-selection
11 [pagination]="pagination"
12 [(selection)]="selection"
13 [(videosModel)]="videos"
14 [miniatureDisplayOptions]="miniatureDisplayOptions"
15 [titlePage]="titlePage"
16 [getVideosObservableFunction]="getVideosObservableFunction"
17 [ownerDisplayType]="ownerDisplayType"
18 #videosSelection
19 >
20 <ng-template ptTemplate="globalButtons">
21 <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()">
22 <my-global-icon iconName="delete" aria-hidden="true"></my-global-icon>
23 <ng-container i18n>Delete</ng-container>
24 </span>
25 </ng-template>
26
27 <ng-template ptTemplate="rowButtons" let-video>
28 <div class="action-button">
29 <my-delete-button (click)="deleteVideo(video)"></my-delete-button>
30
31 <my-edit-button [routerLink]="[ '/videos', 'update', video.uuid ]"></my-edit-button>
32
33 <my-button i18n-label label="Change ownership"
34 className="action-button-change-ownership grey-button"
35 icon="ownership-change"
36 (click)="changeOwnership($event, video)"
37 ></my-button>
38 </div>
39 </ng-template>
40 </my-videos-selection>
41
42
43 <my-video-change-ownership #videoChangeOwnershipModal></my-video-change-ownership>