]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/device-list/device-list.component.html
66c18df61b316c0cd9b0ba0627ea732916f68ed2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / shared / device-list / device-list.component.html
1 <cd-table *ngIf="hostname || osdId !== null"
2 [data]="devices"
3 [columns]="columns"></cd-table>
4
5 <cd-alert-panel type="warning"
6 *ngIf="hostname === '' && osdId === null"
7 i18n>Neither hostname nor OSD ID given</cd-alert-panel>
8
9 <ng-template #deviceLocation
10 let-value="value">
11 <span *ngFor="let location of value">{{location.dev}}</span>
12 </ng-template>
13
14 <ng-template #lifeExpectancy
15 let-value="value">
16 <span *ngIf="value.min && !value.max">&gt; {{value.min | i18nPlural: translationMapping}}</span>
17 <span *ngIf="value.max && !value.min">&lt; {{value.max | i18nPlural: translationMapping}}</span>
18 <span *ngIf="value.max && value.min">{{value.min}} to {{value.max | i18nPlural: translationMapping}}</span>
19 </ng-template>
20
21 <ng-template #lifeExpectancyTimestamp
22 let-value="value">
23 {{value}}
24 </ng-template>