blob: 30db694294775e320f6f14371c1a584f1afc711f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<div
infiniteScroll
[infiniteScrollDistance]="0.5"
[infiniteScrollUpDistance]="1.5"
(scrolled)="onNearOfBottom()"
(scrolledUp)="onNearOfTop()"
>
<div class="video" *ngFor="let video of videos">
<my-video-thumbnail [video]="video"></my-video-thumbnail>
<div class="video-info">
<div class="video-info-name">{{ video.name }}</div>
<span class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
</div>
<a class="action-button action-button-delete" (click)="deleteVideo(video)">
<span class="icon icon-delete"></span>
Delete
</a>
<a class="action-button" [routerLink]="[ '/videos', video.id, '/edit' ]">
<span class="icon icon-edit"></span>
Edit
</a>
</div>
</div>
|