]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
653bd77a0c7689118e2a9d0dc102e75529dbd47f
[ceph-ci.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             (fetchData)="fetchData()">
10
11     <div class="table-actions btn-toolbar">
12       <cd-table-actions [permission]="permissions.cephfs"
13                         [selection]="selection"
14                         class="btn-group"
15                         id="cephfs-subvolumegropup-actions"
16                         [tableActions]="tableActions">
17       </cd-table-actions>
18     </div>
19   </cd-table>
20 </ng-container>
21
22 <ng-template #quotaUsageTpl
23              let-row="row">
24   <cd-usage-bar *ngIf="row.info.bytes_pcent && row.info.bytes_pcent !== 'undefined'; else noLimitTpl"
25                 [total]="row.info.bytes_quota"
26                 [used]="row.info.bytes_pcent"
27                 [title]="row.name"
28                 [calculatePerc]="false"
29                 customLegend="Quota"
30                 [customLegendValue]="row.info.bytes_quota"
31                 decimals="2"></cd-usage-bar>
32
33   <ng-template #noLimitTpl>
34     <span ngbTooltip="Quota limit is not set"
35           *ngIf="row.info.bytes_pcent === 'undefined'"
36           i18n-ngbTooltip>
37       {{row.info.bytes_used | dimlessBinary}}</span>
38   </ng-template>
39 </ng-template>
40
41 <ng-template #typeTpl
42              let-value="value">
43   <cd-label [value]="value"></cd-label>
44 </ng-template>
45
46 <ng-template #modeToHumanReadableTpl
47              let-value="value">
48   <span *ngFor="let result of (value | octalToHumanReadable)"
49         [ngClass]="result.class"
50         [ngbTooltip]="result.toolTip">
51     {{ result.content }}
52   </span>
53 </ng-template>