1 <ng-container *
ngIf=
"selection">
5 cdStatefulTab=
"rgw-user-details">
6 <li ngbNavItem=
"details">
9 <ng-template ngbNavContent
>
11 <table class=
"table table-striped table-bordered">
15 class=
"bold w-25">Tenant
</td>
16 <td class=
"w-75">{{ user.tenant }}
</td>
20 class=
"bold w-25">User ID
</td>
21 <td class=
"w-75">{{ user.user_id }}
</td>
25 class=
"bold w-25">Username
</td>
26 <td class=
"w-75">{{ user.uid }}
</td>
30 class=
"bold">Full name
</td>
31 <td>{{ user.display_name }}
</td>
33 <tr *
ngIf=
"user.email?.length">
35 class=
"bold">Email address
</td>
36 <td>{{ user.email }}
</td>
40 class=
"bold">Suspended
</td>
41 <td>{{ user.suspended | booleanText }}
</td>
45 class=
"bold">System
</td>
46 <td>{{ user.system === 'true' | booleanText }}
</td>
50 class=
"bold">Maximum buckets
</td>
51 <td>{{ user.max_buckets | map:maxBucketsMap }}
</td>
53 <tr *
ngIf=
"user.subusers && user.subusers.length">
55 class=
"bold">Subusers
</td>
57 <div *
ngFor=
"let subuser of user.subusers">
58 {{ subuser.id }} ({{ subuser.permissions }})
62 <tr *
ngIf=
"user.caps && user.caps.length">
64 class=
"bold">Capabilities
</td>
66 <div *
ngFor=
"let cap of user.caps">
67 {{ cap.type }} ({{ cap.perm }})
75 <div *
ngIf=
"user.user_quota">
76 <legend i18n
>User quota
</legend>
77 <table class=
"table table-striped table-bordered">
81 class=
"bold w-25">Enabled
</td>
82 <td class=
"w-75">{{ user.user_quota.enabled | booleanText }}
</td>
86 class=
"bold">Maximum size
</td>
87 <td *
ngIf=
"!user.user_quota.enabled">-
</td>
88 <td *
ngIf=
"user.user_quota.enabled && user.user_quota.max_size <= -1"
90 <td *
ngIf=
"user.user_quota.enabled && user.user_quota.max_size > -1">
91 {{ user.user_quota.max_size | dimlessBinary }}
96 class=
"bold">Maximum objects
</td>
97 <td *
ngIf=
"!user.user_quota.enabled">-
</td>
98 <td *
ngIf=
"user.user_quota.enabled && user.user_quota.max_objects <= -1"
100 <td *
ngIf=
"user.user_quota.enabled && user.user_quota.max_objects > -1">
101 {{ user.user_quota.max_objects }}
108 <!-- Bucket quota -->
109 <div *
ngIf=
"user.bucket_quota">
110 <legend i18n
>Bucket quota
</legend>
111 <table class=
"table table-striped table-bordered">
115 class=
"bold w-25">Enabled
</td>
116 <td class=
"w-75">{{ user.bucket_quota.enabled | booleanText }}
</td>
120 class=
"bold">Maximum size
</td>
121 <td *
ngIf=
"!user.bucket_quota.enabled">-
</td>
122 <td *
ngIf=
"user.bucket_quota.enabled && user.bucket_quota.max_size <= -1"
124 <td *
ngIf=
"user.bucket_quota.enabled && user.bucket_quota.max_size > -1">
125 {{ user.bucket_quota.max_size | dimlessBinary }}
130 class=
"bold">Maximum objects
</td>
131 <td *
ngIf=
"!user.bucket_quota.enabled">-
</td>
132 <td *
ngIf=
"user.bucket_quota.enabled && user.bucket_quota.max_objects <= -1"
134 <td *
ngIf=
"user.bucket_quota.enabled && user.bucket_quota.max_objects > -1">
135 {{ user.bucket_quota.max_objects }}
144 <li ngbNavItem=
"keys"
148 <ng-template ngbNavContent
>
149 <cd-table [data]=
"keys"
150 [columns]=
"keysColumns"
152 selectionType=
"multi"
153 forceIdentifier=
"true"
154 (updateSelection)=
"updateKeysSelection($event)">
155 <div class=
"table-actions">
156 <div class=
"btn-group"
158 <button type=
"button"
159 class=
"btn btn-accent"
160 [disabled]=
"!keysSelection.hasSingleSelection"
161 (click)=
"showKeyModal()">
162 <i [ngClass]=
"[icons.show]"></i>
163 <ng-container i18n
>Show
</ng-container>
172 <div [ngbNavOutlet]=
"nav"></div>