]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | <cd-rbd-tabs></cd-rbd-tabs> |
2 | ||
11fdf7f2 TL |
3 | <cd-table [data]="images" |
4 | columnMode="flex" | |
5 | [columns]="columns" | |
6 | identifier="id" | |
7 | forceIdentifier="true" | |
8 | selectionType="single" | |
f67539c2 TL |
9 | [status]="tableStatus" |
10 | [autoReload]="-1" | |
11 | (fetchData)="taskListService.fetch()" | |
11fdf7f2 TL |
12 | (updateSelection)="updateSelection($event)"> |
13 | <div class="table-actions btn-toolbar"> | |
14 | <cd-table-actions class="btn-group" | |
15 | [permission]="permission" | |
16 | [selection]="selection" | |
17 | [tableActions]="tableActions"> | |
18 | </cd-table-actions> | |
9f95a23c | 19 | <button class="btn btn-light" |
11fdf7f2 TL |
20 | type="button" |
21 | (click)="purgeModal()" | |
9f95a23c | 22 | [disabled]="disablePurgeBtn" |
11fdf7f2 | 23 | *ngIf="permission.delete"> |
9f95a23c | 24 | <i [ngClass]="[icons.destroy]" |
11fdf7f2 TL |
25 | aria-hidden="true"></i> |
26 | <ng-container i18n>Purge Trash</ng-container> | |
27 | </button> | |
28 | </div> | |
29 | </cd-table> | |
30 | ||
31 | <ng-template #expiresTpl | |
32 | let-row="row" | |
33 | let-value="value"> | |
34 | <ng-container *ngIf="row.cdIsExpired" | |
35 | i18n>Expired at</ng-container> | |
36 | ||
37 | <ng-container *ngIf="!row.cdIsExpired" | |
38 | i18n>Protected until</ng-container> | |
39 | ||
40 | {{ value | cdDate }} | |
41 | </ng-template> | |
42 | ||
43 | <ng-template #deleteTpl | |
f67539c2 TL |
44 | let-expiresAt="expiresAt" |
45 | let-isExpired="isExpired"> | |
11fdf7f2 | 46 | <p class="text-danger" |
f67539c2 | 47 | *ngIf="!isExpired"> |
11fdf7f2 TL |
48 | <strong> |
49 | <ng-container i18n>This image is protected until {{ expiresAt | cdDate }}.</ng-container> | |
50 | </strong> | |
51 | </p> | |
52 | </ng-template> |