]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-account/my-account-videos/my-account-videos.component.html
4823e2db97c24cf753af7ad320daf16d6839f0d4
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-videos / my-account-videos.component.html
1 <div i18n *ngIf="pagination.totalItems === 0">No results.</div>
2
3 <div
4 myInfiniteScroller
5 [pageHeight]="pageHeight"
6 (nearOfTop)="onNearOfTop()" (nearOfBottom)="onNearOfBottom()" (pageChanged)="onPageChanged($event)"
7 class="videos" #videosElement
8 >
9 <div *ngFor="let videos of videoPages; let i = index" class="videos-page">
10 <div class="video" *ngFor="let video of videos; let j = index">
11 <div class="checkbox-container">
12 <my-peertube-checkbox [inputName]="'video-check-' + video.id" [(ngModel)]="checkedVideos[video.id]"></my-peertube-checkbox>
13 </div>
14
15 <my-video-thumbnail [video]="video"></my-video-thumbnail>
16
17 <div class="video-info">
18 <a class="video-info-name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name">{{ video.name }}</a>
19 <span i18n class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
20 <div class="video-info-private">{{ video.privacy.label }}{{ getStateLabel(video) }}</div>
21 </div>
22
23 <!-- Display only once -->
24 <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0 && j === 0">
25 <div class="action-selection-mode-child">
26 <span i18n class="action-button action-button-cancel-selection" (click)="abortSelectionMode()">
27 Cancel
28 </span>
29
30 <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()">
31 <span class="icon icon-delete-white"></span>
32 <ng-container i18n>Delete</ng-container>
33 </span>
34 </div>
35 </div>
36
37 <div class="video-buttons" *ngIf="isInSelectionMode() === false">
38 <my-delete-button (click)="deleteVideo(video)"></my-delete-button>
39
40 <my-edit-button [routerLink]="[ '/videos', 'update', video.uuid ]"></my-edit-button>
41 </div>
42 </div>
43 </div>
44 </div>