]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-library/my-history/my-history.component.html
Allow user to search through their watch history (#3576)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-library / my-history / my-history.component.html
CommitLineData
ed5bb517
K
1<h1>
2 <my-global-icon iconName="history" aria-hidden="true"></my-global-icon>
d8b34ee5 3 <ng-container i18n>My watch history</ng-container> <span class="badge badge-secondary">{{ pagination.totalItems }}</span>
ed5bb517
K
4</h1>
5
276d9652 6<div class="top-buttons">
d8b34ee5
RK
7 <div>
8 <div class="input-group has-feedback has-clear">
9 <input
10 type="text" name="history-search" id="history-search" i18n-placeholder placeholder="Search your history"
11 (keyup)="onSearch($event)"
12 >
13 <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
14 <span class="sr-only" i18n>Clear filters</span>
15 </div>
16 </div>
17
18 <div class="history-switch ml-auto mr-3">
4f926722 19 <my-input-switch [(ngModel)]="videosHistoryEnabled" (ngModelChange)="onVideosHistoryChange()"></my-input-switch>
d8b34ee5 20 <label i18n>Track watch history</label>
276d9652
C
21 </div>
22
d01b2fb9 23 <button class="delete-history" (click)="deleteHistory()" i18n>
6ad971d5 24 <my-global-icon iconName="delete" aria-hidden="true"></my-global-icon>
d01b2fb9
C
25 Delete history
26 </button>
276d9652
C
27</div>
28
29
d8b34ee5 30<div class="no-history" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">You don't have any video in your watch history yet.</div>
80bfd33c 31
ad453580 32<div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()" class="videos">
489290b8 33 <div class="video" *ngFor="let video of videos">
3a0fb65c
C
34 <my-video-miniature
35 [video]="video" [displayAsRow]="true"
5c20a455
C
36 (videoRemoved)="removeVideoFromArray(video)" (videoBlocked)="removeVideoFromArray(video)"
37 ></my-video-miniature>
80bfd33c
C
38 </div>
39</div>