# All files / src/app/ceph/block/rbd-trash-list rbd-trash-list.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    514x

     <cd-view-cache *ngFor="let viewCacheStatus of viewCacheStatusList"
                   [status]="viewCacheStatus.status"
                   [statusFor]="viewCacheStatus.statusFor"></cd-view-cache>

    <cd-table [data]="images"
              columnMode="flex"
              [columns]="columns"
              identifier="id"
              forceIdentifier="true"
              selectionType="single"
              (updateSelection)="updateSelection($event)">
      <div class="table-actions btn-toolbar">
        <cd-table-actions class="btn-group"
                          [permission]="permission"
                          [selection]="selection"
                          [tableActions]="tableActions">
        </cd-table-actions>

        <button class="btn btn-sm btn-default btn-label"
                type="button"
                (click)="purgeModal()"
                *ngIf="permission.delete">
          <i class="fa fa-fw fa-times"
             aria-hidden="true"></i>
          <ng-container i18n>Purge Trash</ng-container>
        </button>
      </div>
    </cd-table>

    <ng-template #expiresTpl
                 let-row="row"
                 let-value="value">
      <ng-container *ngIf="row.cdIsExpired"
                    i18n>Expired at</ng-container>

      <ng-container *ngIf="!row.cdIsExpired"
                    i18n>Protected until</ng-container>

      {{ value | cdDate }}
    </ng-template>

    <ng-template #deleteTpl
                 let-expiresAt>
      <p class="text-danger"
         *ngIf="!isExpired(expiresAt)">
        <strong>
          <ng-container i18n>This image is protected until {{ expiresAt | cdDate }}.</ng-container>
        </strong>
      </p>
    </ng-template>