1 <div class=
"d-flex pl-1 pb-2 pt-2">
2 <div class=
"ms-2 me-auto">
4 *
ngIf=
"link && total > 0; else noLinkTitle"
8 <ng-template ngPluralCase=
"=0">{{ title }}
</ng-template>
9 <ng-template ngPluralCase=
"=1">{{ title }}
</ng-template>
10 <ng-template ngPluralCase=
"other">{{ title }}s
</ng-template>
14 <ng-container [ngSwitch]=
"summaryType">
15 <ng-container *
ngSwitchCase=
"'iscsi'">
16 <ng-container *
ngTemplateOutlet=
"iscsiSummary"></ng-container>
18 <ng-container *
ngSwitchCase=
"'osd'">
19 <ng-container *
ngTemplateOutlet=
"osdSummary"></ng-container>
21 <ng-container *
ngSwitchCase=
"'simplified'">
22 <ng-container *
ngTemplateOutlet=
"simplifiedSummary"></ng-container>
24 <ng-container *ngSwitchDefault
>
25 <ng-container *
ngTemplateOutlet=
"defaultSummary"></ng-container>
30 <ng-template #defaultSummary
>
31 <span *
ngIf=
"data.success || data.categoryPgAmount?.clean || (data.success === 0 && data.total === 0)">
32 <span *
ngIf=
"data.success || (data.success === 0 && data.total === 0)">
35 <span *
ngIf=
"data.categoryPgAmount?.clean">
36 {{ data.categoryPgAmount?.clean }}
38 <i class=
"text-success"
39 [ngClass]=
"[icons.success]">
42 <span *
ngIf=
"data.info"
44 <span *
ngIf=
"data.info">
48 [ngClass]=
"[icons.danger]">
51 <span *
ngIf=
"data.warn || data.categoryPgAmount?.warning"
53 <span *
ngIf=
"data.warn">
56 <span *
ngIf=
"data.categoryPgAmount?.warning">
57 {{ data.categoryPgAmount?.warning }}
59 <i class=
"text-warning"
60 [ngClass]=
"[icons.warning]">
63 <span *
ngIf=
"data.error || data.categoryPgAmount?.unknown"
65 <span *
ngIf=
"data.error">
68 <span *
ngIf=
"data.categoryPgAmount?.unknown">
69 {{ data.categoryPgAmount?.unknown }}
71 <i class=
"text-danger"
72 [ngClass]=
"[icons.danger]">
75 <span *
ngIf=
"data.categoryPgAmount?.working"
77 <span *
ngIf=
"data.categoryPgAmount?.working">
78 {{ data.categoryPgAmount?.working }}
80 <i class=
"text-warning"
81 [ngClass]=
"[icons.spinner, icons.spin]">
86 <ng-template #osdSummary
>
87 <span *
ngIf=
"data.up === data.in">
89 <i class=
"text-success"
90 [ngClass]=
"[icons.success]">
93 <span *
ngIf=
"data.up !== data.in">
95 <span class=
"fw-bold text-success">
99 <span *
ngIf=
"data.in !== data.up"
102 <span class=
"fw-bold text-success">
106 <span *
ngIf=
"data.down"
109 <span class=
"fw-bold text-danger me-2">
113 <span *
ngIf=
"data.out"
116 <span class=
"fw-bold text-danger me-2">
120 <span *
ngIf=
"data.nearfull"
123 <span class=
"fw-bold text-warning me-2">
124 nearfull
</span></span>
125 <span *
ngIf=
"data.full"
128 <span class=
"fw-bold text-danger">
134 <ng-template #iscsiSummary
>
137 <i class=
"text-success"
138 *
ngIf=
"data.up || data.up === 0"
139 [ngClass]=
"[icons.success]">
142 <span *
ngIf=
"data.down"
145 <i class=
"text-danger"
146 [ngClass]=
"[icons.danger]">
151 <ng-template #simplifiedSummary
>
154 <i class=
"text-success"
155 [ngClass]=
"[icons.success]"></i>
159 <ng-template #noLinkTitle
>
160 <span *
ngIf=
"total || total === 0"
163 <ng-template ngPluralCase=
"=0">{{ title }}
</ng-template>
164 <ng-template ngPluralCase=
"=1">{{ title }}
</ng-template>
165 <ng-template ngPluralCase=
"other">{{ title }}s
</ng-template>