summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/device-list/device-list.component.html
blob: 56fbb965a659f5461a88eaced3eade226db60b39 (plain)
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
<cd-table *ngIf="hostname || osdId !== null"
          [data]="devices"
          [columns]="columns"></cd-table>

<cd-alert-panel type="warning"
                *ngIf="hostname === '' && osdId === null"
                i18n>Neither hostname nor OSD ID given</cd-alert-panel>

<ng-template #deviceLocation
             let-value="value">
  <span *ngFor="let location of value">{{location.dev}}</span>
</ng-template>

<ng-template #lifeExpectancy
             let-value="value">
  <span *ngIf="!value.life_expectancy_enabled"
        i18n>{{ "" | notAvailable }}</span>
  <span *ngIf="value.min && !value.max">&gt; {{value.min | i18nPlural: translationMapping}}</span>
  <span *ngIf="value.max && !value.min">&lt; {{value.max | i18nPlural: translationMapping}}</span>
  <span *ngIf="value.max && value.min">{{value.min}} to {{value.max | i18nPlural: translationMapping}}</span>
</ng-template>

<ng-template #lifeExpectancyTimestamp
             let-value="value">
  {{value}}
</ng-template>