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