|
1 | 1 | <ng-container *ngIf="selection"> |
2 | | - <table class="table table-striped table-bordered"> |
3 | | - <tbody> |
4 | | - <tr> |
5 | | - <td i18n |
6 | | - class="bold w-25">Versioning</td> |
7 | | - <td class="w-75">{{ selection.versioning }}</td> |
8 | | - </tr> |
9 | | - <tr> |
10 | | - <td i18n |
11 | | - class="bold">Encryption</td> |
12 | | - <td>{{ selection.encryption }}</td> |
13 | | - </tr> |
14 | | - <tr> |
15 | | - <td i18n |
16 | | - class="bold">MFA Delete</td> |
17 | | - <td>{{ selection.mfa_delete }}</td> |
18 | | - </tr> |
19 | | - <tr> |
20 | | - <td i18n |
21 | | - class="bold">Index type</td> |
22 | | - <td>{{ selection.index_type }}</td> |
23 | | - </tr> |
24 | | - <tr> |
25 | | - <td i18n |
26 | | - class="bold">Placement rule</td> |
27 | | - <td>{{ selection.placement_rule }}</td> |
28 | | - </tr> |
29 | | - <tr> |
30 | | - <td i18n |
31 | | - class="bold">Last modification time</td> |
32 | | - <td>{{ selection.mtime | cdDate }}</td> |
33 | | - </tr> |
34 | | - </tbody> |
35 | | - </table> |
| 2 | + <nav ngbNav |
| 3 | + #nav="ngbNav" |
| 4 | + class="nav-tabs" |
| 5 | + cdStatefulTab="rgw-bucket-details"> |
| 6 | + <ng-container ngbNavItem="details"> |
| 7 | + <a ngbNavLink |
| 8 | + i18n>Details</a> |
| 9 | + <ng-template ngbNavContent> |
36 | 10 |
|
37 | | - <!-- Bucket quota --> |
38 | | - <div> |
39 | | - <legend i18n>Bucket quota</legend> |
40 | | - <table class="table table-striped table-bordered"> |
41 | | - <tbody> |
42 | | - <tr> |
43 | | - <td i18n |
44 | | - class="bold w-25">Enabled</td> |
45 | | - <td class="w-75">{{ selection.bucket_quota.enabled | booleanText }}</td> |
46 | | - </tr> |
47 | | - <ng-container *ngIf="selection.bucket_quota.enabled"> |
48 | | - <tr> |
49 | | - <td i18n |
50 | | - class="bold">Maximum size</td> |
51 | | - <td *ngIf="selection.bucket_quota.max_size <= -1" |
52 | | - i18n>Unlimited</td> |
53 | | - <td *ngIf="selection.bucket_quota.max_size > -1"> |
54 | | - {{ selection.bucket_quota.max_size | dimless }} |
55 | | - </td> |
56 | | - </tr> |
57 | | - <tr> |
58 | | - <td i18n |
59 | | - class="bold">Maximum objects</td> |
60 | | - <td *ngIf="selection.bucket_quota.max_objects <= -1" |
61 | | - i18n>Unlimited</td> |
62 | | - <td *ngIf="selection.bucket_quota.max_objects > -1"> |
63 | | - {{ selection.bucket_quota.max_objects }} |
64 | | - </td> |
65 | | - </tr> |
66 | | - </ng-container> |
67 | | - </tbody> |
68 | | - </table> |
69 | | - </div> |
| 11 | + <table class="table table-striped table-bordered"> |
| 12 | + <tbody> |
| 13 | + <tr> |
| 14 | + <td i18n |
| 15 | + class="bold w-25">Versioning</td> |
| 16 | + <td class="w-75">{{ selection.versioning }}</td> |
| 17 | + </tr> |
| 18 | + <tr> |
| 19 | + <td i18n |
| 20 | + class="bold">Encryption</td> |
| 21 | + <td>{{ selection.encryption }}</td> |
| 22 | + </tr> |
| 23 | + <tr> |
| 24 | + <td i18n |
| 25 | + class="bold">MFA Delete</td> |
| 26 | + <td>{{ selection.mfa_delete }}</td> |
| 27 | + </tr> |
| 28 | + <tr> |
| 29 | + <td i18n |
| 30 | + class="bold">Index type</td> |
| 31 | + <td>{{ selection.index_type }}</td> |
| 32 | + </tr> |
| 33 | + <tr> |
| 34 | + <td i18n |
| 35 | + class="bold">Placement rule</td> |
| 36 | + <td>{{ selection.placement_rule }}</td> |
| 37 | + </tr> |
| 38 | + <tr> |
| 39 | + <td i18n |
| 40 | + class="bold">Last modification time</td> |
| 41 | + <td>{{ selection.mtime | cdDate }}</td> |
| 42 | + </tr> |
| 43 | + </tbody> |
| 44 | + </table> |
70 | 45 |
|
71 | | - <!-- Locking --> |
72 | | - <legend i18n>Locking</legend> |
73 | | - <table class="table table-striped table-bordered"> |
74 | | - <tbody> |
75 | | - <tr> |
76 | | - <td i18n |
77 | | - class="bold w-25">Enabled</td> |
78 | | - <td class="w-75">{{ selection.lock_enabled | booleanText }}</td> |
79 | | - </tr> |
80 | | - <ng-container *ngIf="selection.lock_enabled"> |
81 | | - <tr> |
82 | | - <td i18n |
83 | | - class="bold">Mode</td> |
84 | | - <td>{{ selection.lock_mode }}</td> |
85 | | - </tr> |
86 | | - <tr> |
87 | | - <td i18n |
88 | | - class="bold">Days</td> |
89 | | - <td>{{ selection.lock_retention_period_days }}</td> |
90 | | - </tr> |
91 | | - </ng-container> |
92 | | - </tbody> |
93 | | - </table> |
| 46 | + <!-- Bucket quota --> |
| 47 | + <div> |
| 48 | + <legend i18n>Bucket quota</legend> |
| 49 | + <table class="table table-striped table-bordered"> |
| 50 | + <tbody> |
| 51 | + <tr> |
| 52 | + <td i18n |
| 53 | + class="bold w-25">Enabled</td> |
| 54 | + <td class="w-75">{{ selection.bucket_quota.enabled | booleanText }}</td> |
| 55 | + </tr> |
| 56 | + <ng-container *ngIf="selection.bucket_quota.enabled"> |
| 57 | + <tr> |
| 58 | + <td i18n |
| 59 | + class="bold">Maximum size</td> |
| 60 | + <td *ngIf="selection.bucket_quota.max_size <= -1" |
| 61 | + i18n>Unlimited</td> |
| 62 | + <td *ngIf="selection.bucket_quota.max_size > -1"> |
| 63 | + {{ selection.bucket_quota.max_size | dimless }} |
| 64 | + </td> |
| 65 | + </tr> |
| 66 | + <tr> |
| 67 | + <td i18n |
| 68 | + class="bold">Maximum objects</td> |
| 69 | + <td *ngIf="selection.bucket_quota.max_objects <= -1" |
| 70 | + i18n>Unlimited</td> |
| 71 | + <td *ngIf="selection.bucket_quota.max_objects > -1"> |
| 72 | + {{ selection.bucket_quota.max_objects }} |
| 73 | + </td> |
| 74 | + </tr> |
| 75 | + </ng-container> |
| 76 | + </tbody> |
| 77 | + </table> |
| 78 | + </div> |
| 79 | + |
| 80 | + <!-- Locking --> |
| 81 | + <legend i18n>Locking</legend> |
| 82 | + <table class="table table-striped table-bordered"> |
| 83 | + <tbody> |
| 84 | + <tr> |
| 85 | + <td i18n |
| 86 | + class="bold w-25">Enabled</td> |
| 87 | + <td class="w-75">{{ selection.lock_enabled | booleanText }}</td> |
| 88 | + </tr> |
| 89 | + <ng-container *ngIf="selection.lock_enabled"> |
| 90 | + <tr> |
| 91 | + <td i18n |
| 92 | + class="bold">Mode</td> |
| 93 | + <td>{{ selection.lock_mode }}</td> |
| 94 | + </tr> |
| 95 | + <tr> |
| 96 | + <td i18n |
| 97 | + class="bold">Days</td> |
| 98 | + <td>{{ selection.lock_retention_period_days }}</td> |
| 99 | + </tr> |
| 100 | + </ng-container> |
| 101 | + </tbody> |
| 102 | + </table> |
| 103 | + </ng-template> |
| 104 | + </ng-container> |
| 105 | + |
| 106 | + <ng-container ngbNavItem="permissions"> |
| 107 | + <a ngbNavLink |
| 108 | + i18n>Permissions</a> |
| 109 | + <ng-template ngbNavContent> |
| 110 | + |
| 111 | + <table class="table table-striped table-bordered"> |
| 112 | + <tbody> |
| 113 | + <tr> |
| 114 | + <td i18n |
| 115 | + class="bold w-25">Policy</td> |
| 116 | + <td><pre>{{ selection.policy | json}}</pre></td> |
| 117 | + </tr> |
| 118 | + </tbody> |
| 119 | + </table> |
| 120 | + </ng-template> |
| 121 | + </ng-container> |
| 122 | + </nav> |
| 123 | + |
| 124 | + <div [ngbNavOutlet]="nav"></div> |
94 | 125 | </ng-container> |
0 commit comments