]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-library/my-history/my-history.component.html
Clearer video creation from API regarding rates
[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">
0f7407d9 7 <div class="search-wrapper">
dd24f1bb 8 <my-advanced-input-filter [emitOnInit]="false" (search)="onSearch($event)"></my-advanced-input-filter>
d8b34ee5
RK
9 </div>
10
0f7407d9 11 <div class="history-switch">
4f926722 12 <my-input-switch [(ngModel)]="videosHistoryEnabled" (ngModelChange)="onVideosHistoryChange()"></my-input-switch>
d8b34ee5 13 <label i18n>Track watch history</label>
276d9652
C
14 </div>
15
7177b46c 16 <button class="delete-history" (click)="clearAllHistory()" i18n>
6ad971d5 17 <my-global-icon iconName="delete" aria-hidden="true"></my-global-icon>
7177b46c 18 Clear all history
d01b2fb9 19 </button>
276d9652
C
20</div>
21
2e46eb97
C
22<my-videos-selection
23 [pagination]="pagination"
24 [(videosModel)]="videos"
25 [miniatureDisplayOptions]="miniatureDisplayOptions"
26 [titlePage]="titlePage"
27 [getVideosObservableFunction]="getVideosObservableFunction"
28 [user]="user"
2e46eb97
C
29 i18n-noResultMessage noResultMessage="You don't have any video in your watch history yet."
30 [enableSelection]="false"
dd24f1bb 31 [disabled]="disabled"
2e46eb97 32 #videosSelection
7177b46c
C
33>
34 <ng-template ptTemplate="rowButtons" let-video>
35 <div class="action-button">
36 <my-delete-button i18n-label label="Delete from history" (click)="deleteHistoryElement(video)"></my-delete-button>
37 </div>
38 </ng-template>
39</my-videos-selection>