]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/device-list/device-list.component.html
import ceph quincy 17.2.6
[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 <ng-container *ngFor="let location of value">
12 <cd-label *ngIf="location.host === hostname"
13 [value]="location.dev"></cd-label>
14 </ng-container>
15 </ng-template>
16
17 <ng-template #daemonName
18 let-value="value">
19 <ng-container [ngTemplateOutlet]="osdId !== null ? osdIdDaemon : readableDaemons"
20 [ngTemplateOutletContext]="{daemons: value}">
21 </ng-container>
22 </ng-template>
23
24 <ng-template #osdIdDaemon
25 let-daemons="daemons">
26 <ng-container *ngFor="let daemon of daemons">
27 <cd-label *ngIf="daemon.includes(osdId)"
28 [value]="daemon"></cd-label>
29 </ng-container>
30 </ng-template>
31
32 <ng-template #readableDaemons
33 let-daemons="daemons">
34 <ng-container *ngFor="let daemon of daemons">
35 <cd-label class="me-1"
36 [value]="daemon"></cd-label>
37 </ng-container>
38 </ng-template>
39
40
41 <ng-template #lifeExpectancy
42 let-value="value">
43 <span *ngIf="!value.life_expectancy_enabled"
44 i18n>{{ "" | notAvailable }}</span>
45 <span *ngIf="value.min && !value.max">&gt; {{value.min | i18nPlural: translationMapping}}</span>
46 <span *ngIf="value.max && !value.min">&lt; {{value.max | i18nPlural: translationMapping}}</span>
47 <span *ngIf="value.max && value.min">{{value.min}} to {{value.max | i18nPlural: translationMapping}}</span>
48 </ng-template>
49
50 <ng-template #lifeExpectancyTimestamp
51 let-value="value">
52 {{value}}
53 </ng-template>