aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-videos/account-videos.component.html
blob: 81bda9477480b36af7e393bb6bc0b0d1eb6cae75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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="edit-button" [routerLink]="[ '/videos', video.id, '/edit' ]">
      <span class="icon icon-edit"></span>
      Edit
    </a>
  </div>
</div>