]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-library/my-ownership/my-ownership.component.html
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-library / my-ownership / my-ownership.component.html
CommitLineData
ed5bb517
K
1<h1>
2 <my-global-icon iconName="download" aria-hidden="true"></my-global-icon>
3 <ng-container i18n>My ownership changes</ng-container>
4</h1>
5
74d63469 6<p-table
0667dbaf
C
7 [value]="videoChangeOwnerships" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage"
8 [first]="pagination.start" [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
74d63469
GR
9>
10 <ng-template pTemplate="header">
11 <tr>
30814423 12 <th style="width: 150px;" i18n>Actions</th>
4c9e9d2e
RK
13 <th style="width: 35%;" i18n>Initiator</th>
14 <th style="width: 65%;" i18n>Video</th>
15 <th style="width: 150px;" i18n pSortableColumn="createdAt">
74d63469
GR
16 Created
17 <p-sortIcon field="createdAt"></p-sortIcon>
18 </th>
4c9e9d2e 19 <th style="width: 100px;" i18n>Status</th>
74d63469
GR
20 </tr>
21 </ng-template>
22
23 <ng-template pTemplate="body" let-videoChangeOwnership>
24 <tr>
30814423
K
25 <td class="action-cell">
26 <ng-container *ngIf="videoChangeOwnership.status === 'WAITING'">
27 <my-button i18n-title title="Accept" icon="tick" (click)="openAcceptModal(videoChangeOwnership)"></my-button>
28 <my-button i18n-title title="Refuse" icon="cross" (click)="refuse(videoChangeOwnership)"></my-button>
29 </ng-container>
30 </td>
74d63469 31 <td>
4c9e9d2e
RK
32 <a [href]="videoChangeOwnership.initiatorAccount.url" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer">
33 <div class="chip two-lines">
87fdea2f 34 <my-actor-avatar [actor]="videoChangeOwnership.initiatorAccount" actorType="account" size="32"></my-actor-avatar>
4c9e9d2e
RK
35 <div>
36 {{ videoChangeOwnership.initiatorAccount.displayName }}
b788e691 37 <span class="muted">{{ videoChangeOwnership.initiatorAccount.nameWithHost }}</span>
4c9e9d2e
RK
38 </div>
39 </div>
74d63469
GR
40 </a>
41 </td>
4c9e9d2e 42
74d63469 43 <td>
4c9e9d2e
RK
44 <a [href]="videoChangeOwnership.video.url" class="video-table-video-link" [title]="videoChangeOwnership.video.name" target="_blank" rel="noopener noreferrer">
45 <div class="video-table-video">
46 <div class="video-table-video-image">
d0fbc9fd 47 <img [src]="videoChangeOwnership.video.thumbnailPath" alt="">
4c9e9d2e
RK
48 </div>
49 <div class="video-table-video-text">
50 <div>
51 {{ videoChangeOwnership.video.name }}
52 </div>
b788e691 53 <div class="muted">by {{ videoChangeOwnership.video.channel?.displayName }} </div>
4c9e9d2e
RK
54 </div>
55 </div>
74d63469
GR
56 </a>
57 </td>
4c9e9d2e
RK
58
59 <td>{{ videoChangeOwnership.createdAt | date: 'short' }}</td>
4f5d0459
RK
60
61 <td>
4c8749cb 62 <span class="pt-badge"
30814423 63 [ngClass]="getStatusClass(videoChangeOwnership.status)">{{ videoChangeOwnership.status }}</span>
74d63469
GR
64 </td>
65 </tr>
66 </ng-template>
4c9e9d2e
RK
67
68 <ng-template pTemplate="emptymessage">
69 <tr>
4b70c278 70 <td myAutoColspan>
4c9e9d2e
RK
71 <div class="no-results">
72 <ng-container i18n>No ownership change request found.</ng-container>
73 </div>
74 </td>
75 </tr>
76 </ng-template>
74d63469
GR
77</p-table>
78
17119e4a 79<my-accept-ownership #myAcceptOwnershipComponent (accepted)="accepted()"></my-accept-ownership>