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