]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
588eb0fbd92aca6b338a31a7f87f762305b57365
[ceph.git] /
1 <ng-container *ngIf="!loading; else isLoading">
2   <ng-container *ngIf="incompatible; else isCompatible">
3     <cd-alert-panel type="warning"
4                     i18n>The data received has the JSON format version 2.x and is currently incompatible with the dashboard.</cd-alert-panel>
5   </ng-container>
6   <ng-template #isCompatible>
7     <tabset *ngFor="let device of data | keyvalue">
8       <tab [heading]="device.value.device + ' (' + device.value.identifier + ')'">
9         <ng-container *ngIf="device.value.error; else noError">
10           <cd-alert-panel type="warning">{{ device.value.userMessage }}</cd-alert-panel>
11         </ng-container>
12         <ng-template #noError>
13           <ng-container *ngIf="device.value.smart.data.self_test.status.passed; else selfTestFailed">
14             <cd-alert-panel
15               size="slim"
16               type="info"
17               i18n-title
18               title="SMART overall-health self-assessment test result">
19               {{ device.value.smart.data.self_test.status.string }}
20             </cd-alert-panel>
21           </ng-container>
22           <ng-template #selfTestFailed>
23             <cd-alert-panel
24               size="slim"
25               type="warning"
26               i18n-title
27               title="SMART overall-health self-assessment test result">
28               {{ device.value.smart.data.self_test.status.string }}
29             </cd-alert-panel>
30           </ng-template>
31           <tabset>
32             <tab i18n-heading
33                  heading="Device Information">
34               <cd-table-key-value [renderObjects]="true"
35                                   [data]="device.value.info"></cd-table-key-value>
36             </tab>
37
38             <tab i18n-heading
39                  heading="S.M.A.R.T">
40               <cd-table [data]="device.value.smart.attributes.table"
41                         updateSelectionOnRefresh="never"
42                         [columns]="columns"></cd-table>
43             </tab>
44           </tabset>
45         </ng-template>
46       </tab>
47     </tabset>
48   </ng-template>
49 </ng-container>
50 <ng-template #isLoading>
51   <cd-loading-panel i18n>S.M.A.R.T data is loading.</cd-loading-panel>
52 </ng-template>