]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/account/account-videos/account-videos.component.html
Fix deleting a video with comments
[github/Chocobozzz/PeerTube.git] / client / src / app / account / account-videos / account-videos.component.html
CommitLineData
6e33bf28
C
1<div *ngIf="pagination.totalItems === 0">No results.</div>
2
202f6b6c 3<div
9b7d1c72 4 class="videos"
202f6b6c
C
5 infiniteScroll
6 [infiniteScrollDistance]="0.5"
a2b817d3 7 [infiniteScrollUpDistance]="1.5"
202f6b6c 8 (scrolled)="onNearOfBottom()"
a2b817d3 9 (scrolledUp)="onNearOfTop()"
202f6b6c 10>
ce0e281d 11 <div class="video" *ngFor="let video of videos; let i = index">
a0d69908
C
12 <div class="checkbox-container">
13 <input [id]="'video-check-' + i" type="checkbox" [(ngModel)]="checkedVideos[video.id]" />
14 <label [for]="'video-check-' + i"></label>
15 </div>
ce0e281d 16
202f6b6c 17 <my-video-thumbnail [video]="video"></my-video-thumbnail>
d2cc03aa
C
18
19 <div class="video-info">
b2731bff 20 <a class="video-info-name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name">{{ video.name }}</a>
be447678 21 <span class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
d2cc03aa
C
22 </div>
23
ce0e281d
C
24 <!-- Display only once -->
25 <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0">
26 <div class="action-selection-mode-child">
dc595ab7 27 <span class="action-button action-button-cancel-selection" (click)="abortSelectionMode()">
ce0e281d
C
28 Cancel
29 </span>
30
cd83ea1b 31 <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()">
ce0e281d
C
32 <span class="icon icon-delete-white"></span>
33 Delete
34 </span>
35 </div>
36 </div>
37
9b7d1c72 38 <div class="video-buttons" *ngIf="isInSelectionMode() === false">
cd83ea1b 39 <my-delete-button (click)="deleteVideo(video)"></my-delete-button>
332542bc 40
cd83ea1b 41 <my-edit-button [routerLink]="[ '/videos', 'edit', video.uuid ]"></my-edit-button>
9b7d1c72 42 </div>
202f6b6c
C
43 </div>
44</div>