aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-history/my-account-history.component.html
blob: 00ee5fbd1f2ebdb97d29198e90bc3028dcaed208 (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 class="top-buttons">
  <div class="history-switch">
    <p-inputSwitch [(ngModel)]="videosHistoryEnabled" (ngModelChange)="onVideosHistoryChange()"></p-inputSwitch>
    <label i18n>History enabled</label>
  </div>

  <button class="delete-history" (click)="deleteHistory()" i18n>
    <my-global-icon iconName="delete"></my-global-icon>
    Delete history
  </button>
</div>


<div class="no-history" i18n *ngIf="pagination.totalItems === 0">You don't have videos history yet.</div>

<div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" class="videos">
  <div class="video" *ngFor="let video of videos">
    <my-video-thumbnail [video]="video"></my-video-thumbnail>

    <div class="video-info">
      <a tabindex="-1" class="video-info-name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name">{{ video.name }}</a>
      <span i18n class="video-info-date-views">{{ video.views | myNumberFormatter }} views</span>
      <a tabindex="-1" class="video-info-account" [routerLink]="[ '/accounts', video.byAccount ]">{{ video.byAccount }}</a>
    </div>
  </div>
</div>