]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
27cdc155424e61f053240f6745d2ba689d6d97f6
[ceph.git] /
1
2 <ng-container *ngIf="subvolumeGroup$ | async as subvolumeGroup">
3   <cd-table *ngIf="subvolumeGroup"
4             [data]="subvolumeGroup"
5             columnMode="flex"
6             [columns]="columns"
7             selectionType="single"
8             [hasDetails]="false">
9   </cd-table>
10 </ng-container>
11
12 <ng-template #quotaUsageTpl
13              let-row="row">
14   <cd-usage-bar *ngIf="row.info.bytes_pcent && row.info.bytes_pcent !== 'undefined'; else noLimitTpl"
15                 [total]="row.info.bytes_quota"
16                 [used]="row.info.bytes_pcent"
17                 [title]="row.name"
18                 [calculatePerc]="false"
19                 customLegend="Quota"
20                 [customLegendValue]="row.info.bytes_quota"
21                 decimals="2"></cd-usage-bar>
22
23   <ng-template #noLimitTpl>
24     <span ngbTooltip="Quota limit is not set"
25           *ngIf="row.info.bytes_pcent === 'undefined'"
26           i18n-ngbTooltip>
27       {{row.info.bytes_used | dimlessBinary}}</span>
28   </ng-template>
29 </ng-template>
30
31 <ng-template #typeTpl
32              let-value="value">
33   <cd-label [value]="value"></cd-label>
34 </ng-template>
35
36 <ng-template #modeToHumanReadableTpl
37              let-value="value">
38   <span *ngFor="let result of (value | octalToHumanReadable)"
39         [ngClass]="result.class"
40         [ngbTooltip]="result.toolTip">
41     {{ result.content }}
42   </span>
43 </ng-template>