]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-account/my-account-videos/my-account-videos.component.html
Improve (accessibility title) and move action-buttons on left in tables (#2980)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-videos / my-account-videos.component.html
1 <h1 class="d-flex justify-content-between">
2 <span>
3 <my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
4 <ng-container i18n>My videos</ng-container>
5 <span class="badge badge-secondary"> {{ pagination.totalItems }}</span>
6 </span>
7
8 <div class="has-feedback has-clear">
9 <input type="text" placeholder="Search your videos" i18n-placeholder [(ngModel)]="videosSearch" (ngModelChange)="onVideosSearchChanged()" />
10 <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
11 <span class="sr-only" i18n>Clear filters</span>
12 </div>
13 </h1>
14
15 <my-videos-selection
16 [pagination]="pagination"
17 [(selection)]="selection"
18 [(videosModel)]="videos"
19 [miniatureDisplayOptions]="miniatureDisplayOptions"
20 [titlePage]="titlePage"
21 [getVideosObservableFunction]="getVideosObservableFunction"
22 [ownerDisplayType]="ownerDisplayType"
23 #videosSelection
24 >
25 <ng-template ptTemplate="globalButtons">
26 <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()">
27 <my-global-icon iconName="delete" aria-hidden="true"></my-global-icon>
28 <ng-container i18n>Delete</ng-container>
29 </span>
30 </ng-template>
31
32 <ng-template ptTemplate="rowButtons" let-video>
33 <div class="action-button">
34 <my-delete-button label (click)="deleteVideo(video)"></my-delete-button>
35
36 <my-edit-button label [routerLink]="[ '/videos', 'update', video.uuid ]"></my-edit-button>
37
38 <my-button i18n-label label="Change ownership"
39 className="action-button-change-ownership grey-button"
40 icon="ownership-change"
41 (click)="changeOwnership($event, video)"
42 ></my-button>
43 </div>
44 </ng-template>
45 </my-videos-selection>
46
47
48 <my-video-change-ownership #videoChangeOwnershipModal></my-video-change-ownership>