summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.html
blob: 6c6d7677ec70d2948f362eabb61f3595278bd90e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<cd-table #table
          [autoReload]="false"
          [data]="users"
          [columns]="columns"
          columnMode="flex"
          selectionType="multiClick"
          [hasDetails]="true"
          (setExpandedRow)="setExpandedRow($event)"
          (updateSelection)="updateSelection($event)"
          identifier="uid"
          (fetchData)="getUserList($event)"
          [status]="tableStatus">
  <cd-table-actions class="table-actions"
                    [permission]="permission"
                    [selection]="selection"
                    [tableActions]="tableActions">
  </cd-table-actions>
  <cd-rgw-user-details cdTableDetail
                       [selection]="expandedRow">
  </cd-rgw-user-details>
</cd-table>

<ng-template #userSizeTpl
             let-row="row">
  <cd-usage-bar *ngIf="row.user_quota.max_size > 0 && row.user_quota.enabled; else noSizeQuota"
                [total]="row.user_quota.max_size"
                [used]="row.stats.size_actual">
  </cd-usage-bar>

  <ng-template #noSizeQuota
               i18n>No Limit</ng-template>
</ng-template>

<ng-template #userObjectTpl
             let-row="row">
  <cd-usage-bar *ngIf="row.user_quota.max_objects > 0 && row.user_quota.enabled; else noObjectQuota"
                [total]="row.user_quota.max_objects"
                [used]="row.stats.num_objects"
                [isBinary]="false">
  </cd-usage-bar>

  <ng-template #noObjectQuota
               i18n>No Limit</ng-template>
</ng-template>