add theming via css custom properties
[oweals/peertube.git] / client / src / app / +my-account / my-account-videos / my-account-videos.component.html
1 <div i18n *ngIf="pagination.totalItems === 0">No results.</div>
2
3 <div
4   myInfiniteScroller
5   [pageHeight]="pageHeight"
6   (nearOfTop)="onNearOfTop()" (nearOfBottom)="onNearOfBottom()" (pageChanged)="onPageChanged($event)"
7   class="videos" #videosElement
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
15       <my-video-thumbnail [video]="video"></my-video-thumbnail>
16
17       <div class="video-info">
18         <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>
20         <div class="video-info-private">{{ video.privacy.label }}{{ getStateLabel(video) }}</div>
21         <div *ngIf="video.blacklisted" class="video-info-blacklisted">
22           <span class="blacklisted-label" i18n>Blacklisted</span>
23           <span class="blacklisted-reason" *ngIf="video.blacklistedReason">{{ video.blacklistedReason }}</span>
24         </div>
25       </div>
26
27       <!-- Display only once -->
28       <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0 && j === 0">
29         <div class="action-selection-mode-child">
30           <span i18n class="action-button action-button-cancel-selection" (click)="abortSelectionMode()">
31             Cancel
32           </span>
33
34           <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()">
35             <span class="icon icon-delete-white"></span>
36             <ng-container i18n>Delete</ng-container>
37           </span>
38         </div>
39       </div>
40
41       <div class="video-buttons" *ngIf="isInSelectionMode() === false">
42         <my-delete-button (click)="deleteVideo(video)"></my-delete-button>
43
44         <my-edit-button [routerLink]="[ '/videos', 'update', video.uuid ]"></my-edit-button>
45
46         <my-button i18n label="Change ownership"
47                    className="action-button-change-ownership"
48                    icon="icon-im-with-her"
49                    (click)="changeOwnership($event, video)"
50         ></my-button>
51       </div>
52     </div>
53   </div>
54 </div>
55
56 <my-video-change-ownership #videoChangeOwnershipModal></my-video-change-ownership>