diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-21 16:49:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-02 11:45:02 +0200 |
commit | 489290b8b16bede6ddfb773adad55dee6471ccfd (patch) | |
tree | 8d3bb73c80df18f1e4d15b23a7e4080a6bc5985e /client/src/app/+my-account/my-account-videos/my-account-videos.component.html | |
parent | 7ccddd7b5250bd25a917a6e77e58b87b9484a2a4 (diff) | |
download | PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.tar.gz PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.tar.zst PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.zip |
Restore videos list components
Diffstat (limited to 'client/src/app/+my-account/my-account-videos/my-account-videos.component.html')
-rw-r--r-- | client/src/app/+my-account/my-account-videos/my-account-videos.component.html | 75 |
1 files changed, 34 insertions, 41 deletions
diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.html b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html index b09e845ac..1f3ac0005 100644 --- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.html +++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html | |||
@@ -1,54 +1,47 @@ | |||
1 | <div i18n *ngIf="pagination.totalItems === 0">No results.</div> | 1 | <div i18n *ngIf="pagination.totalItems === 0">No results.</div> |
2 | 2 | ||
3 | <div | 3 | <div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" class="videos"> |
4 | myInfiniteScroller | 4 | <div class="video" *ngFor="let video of videos; let i = index"> |
5 | [pageHeight]="pageHeight" | 5 | <div class="checkbox-container"> |
6 | (nearOfTop)="onNearOfTop()" (nearOfBottom)="onNearOfBottom()" (pageChanged)="onPageChanged($event)" | 6 | <my-peertube-checkbox [inputName]="'video-check-' + video.id" [(ngModel)]="checkedVideos[video.id]"></my-peertube-checkbox> |
7 | class="videos" #videosElement | 7 | </div> |
8 | > | ||
9 | <div *ngFor="let videos of videoPages; let i = index" class="videos-page"> | ||
10 | <div class="video" *ngFor="let video of videos; let j = index"> | ||
11 | <div class="checkbox-container"> | ||
12 | <my-peertube-checkbox [inputName]="'video-check-' + video.id" [(ngModel)]="checkedVideos[video.id]"></my-peertube-checkbox> | ||
13 | </div> | ||
14 | 8 | ||
15 | <my-video-thumbnail [video]="video"></my-video-thumbnail> | 9 | <my-video-thumbnail [video]="video"></my-video-thumbnail> |
16 | 10 | ||
17 | <div class="video-info"> | 11 | <div class="video-info"> |
18 | <a class="video-info-name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name">{{ video.name }}</a> | 12 | <a class="video-info-name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name">{{ video.name }}</a> |
19 | <span i18n class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span> | 13 | <span i18n class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span> |
20 | <div class="video-info-privacy">{{ video.privacy.label }}{{ getStateLabel(video) }}</div> | 14 | <div class="video-info-privacy">{{ video.privacy.label }}{{ getStateLabel(video) }}</div> |
21 | <div *ngIf="video.blacklisted" class="video-info-blacklisted"> | 15 | <div *ngIf="video.blacklisted" class="video-info-blacklisted"> |
22 | <span class="blacklisted-label" i18n>Blacklisted</span> | 16 | <span class="blacklisted-label" i18n>Blacklisted</span> |
23 | <span class="blacklisted-reason" *ngIf="video.blacklistedReason">{{ video.blacklistedReason }}</span> | 17 | <span class="blacklisted-reason" *ngIf="video.blacklistedReason">{{ video.blacklistedReason }}</span> |
24 | </div> | ||
25 | </div> | 18 | </div> |
19 | </div> | ||
26 | 20 | ||
27 | <!-- Display only once --> | 21 | <!-- Display only once --> |
28 | <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0 && j === 0"> | 22 | <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0"> |
29 | <div class="action-selection-mode-child"> | 23 | <div class="action-selection-mode-child"> |
30 | <span i18n class="action-button action-button-cancel-selection" (click)="abortSelectionMode()"> | 24 | <span i18n class="action-button action-button-cancel-selection" (click)="abortSelectionMode()"> |
31 | Cancel | 25 | Cancel |
32 | </span> | 26 | </span> |
33 | 27 | ||
34 | <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()"> | 28 | <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()"> |
35 | <my-global-icon iconName="delete"></my-global-icon> | 29 | <my-global-icon iconName="delete"></my-global-icon> |
36 | <ng-container i18n>Delete</ng-container> | 30 | <ng-container i18n>Delete</ng-container> |
37 | </span> | 31 | </span> |
38 | </div> | ||
39 | </div> | 32 | </div> |
33 | </div> | ||
40 | 34 | ||
41 | <div class="video-buttons" *ngIf="isInSelectionMode() === false"> | 35 | <div class="video-buttons" *ngIf="isInSelectionMode() === false"> |
42 | <my-delete-button (click)="deleteVideo(video)"></my-delete-button> | 36 | <my-delete-button (click)="deleteVideo(video)"></my-delete-button> |
43 | 37 | ||
44 | <my-edit-button [routerLink]="[ '/videos', 'update', video.uuid ]"></my-edit-button> | 38 | <my-edit-button [routerLink]="[ '/videos', 'update', video.uuid ]"></my-edit-button> |
45 | 39 | ||
46 | <my-button i18n-label label="Change ownership" | 40 | <my-button i18n-label label="Change ownership" |
47 | className="action-button-change-ownership" | 41 | className="action-button-change-ownership" |
48 | icon="im-with-her" | 42 | icon="im-with-her" |
49 | (click)="changeOwnership($event, video)" | 43 | (click)="changeOwnership($event, video)" |
50 | ></my-button> | 44 | ></my-button> |
51 | </div> | ||
52 | </div> | 45 | </div> |
53 | </div> | 46 | </div> |
54 | </div> | 47 | </div> |