]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
80d0b94731befbc9f482deccedeaaab78aa2ce3e
[ceph-ci.git] /
1 <cd-table [data]="data"
2           [columns]="poolConfigurationColumns"
3           identifier="name">
4 </cd-table>
5
6 <ng-template #configurationSourceTpl
7              let-row="row"
8              let-value="value">
9   <div [ngSwitch]="+value">
10     <span *ngSwitchCase="sourceField.global" i18n>Global</span>
11     <strong *ngSwitchCase="sourceField.image" i18n>Image</strong>
12     <strong *ngSwitchCase="sourceField.pool" i18n>Pool</strong>
13   </div>
14 </ng-template>
15
16 <ng-template #configurationValueTpl
17              let-row="row"
18              let-value="value">
19   <div [ngSwitch]="row.type">
20     <span *ngSwitchCase="typeField.bps">{{ value | dimlessBinaryPerSecond }}</span>
21     <span *ngSwitchCase="typeField.milliseconds">{{ value | milliseconds }}</span>
22     <span *ngSwitchCase="typeField.iops">{{ value | iops }}</span>
23     <span *ngSwitchDefault>{{ value }}</span>
24   </div>
25 </ng-template>