1 <cd-table *
ngIf=
"hostname || osdId !== null"
3 [columns]=
"columns"></cd-table>
5 <cd-alert-panel type=
"warning"
6 *
ngIf=
"hostname === '' && osdId === null"
7 i18n
>Neither hostname nor OSD ID given
</cd-alert-panel>
9 <ng-template #deviceLocation
11 <ng-container *
ngFor=
"let location of value">
12 <cd-label *
ngIf=
"location.host === hostname"
13 [value]=
"location.dev"></cd-label>
17 <ng-template #daemonName
19 <ng-container [ngTemplateOutlet]=
"osdId !== null ? osdIdDaemon : readableDaemons"
20 [ngTemplateOutletContext]=
"{daemons: value}">
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>
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>
41 <ng-template #lifeExpectancy
43 <span *
ngIf=
"!value.life_expectancy_enabled"
44 i18n
>{{
"" | notAvailable }}
</span>
45 <span *
ngIf=
"value.min && !value.max">> {{value.min | i18nPlural: translationMapping}}
</span>
46 <span *
ngIf=
"value.max && !value.min">< {{value.max | i18nPlural: translationMapping}}
</span>
47 <span *
ngIf=
"value.max && value.min">{{value.min}} to {{value.max | i18nPlural: translationMapping}}
</span>
50 <ng-template #lifeExpectancyTimestamp