summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.html
blob: bf4bdcb08d959227b05ed522272980bfc1942d1c (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<ng-container *ngIf="selection">
  <table class="table table-striped table-bordered">
    <tbody>
      <tr>
        <td i18n
            class="bold w-25">Name</td>
        <td class="w-75">{{ selection.bid }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">ID</td>
        <td>{{ selection.id }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Owner</td>
        <td>{{ selection.owner }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Index type</td>
        <td>{{ selection.index_type }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Placement rule</td>
        <td>{{ selection.placement_rule }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Marker</td>
        <td>{{ selection.marker }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Maximum marker</td>
        <td>{{ selection.max_marker }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Version</td>
        <td>{{ selection.ver }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Master version</td>
        <td>{{ selection.master_ver }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Modification time</td>
        <td>{{ selection.mtime | cdDate }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Zonegroup</td>
        <td>{{ selection.zonegroup }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">Versioning</td>
        <td>{{ selection.versioning }}</td>
      </tr>
      <tr>
        <td i18n
            class="bold">MFA Delete</td>
        <td>{{ selection.mfa_delete }}</td>
      </tr>
    </tbody>
  </table>

  <!-- Bucket quota -->
  <div *ngIf="selection.bucket_quota">
    <legend i18n>Bucket quota</legend>
    <table class="table table-striped table-bordered">
      <tbody>
        <tr>
          <td i18n
              class="bold w-25">Enabled</td>
          <td class="w-75">{{ selection.bucket_quota.enabled | booleanText }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Maximum size</td>
          <td *ngIf="selection.bucket_quota.max_size <= -1"
              i18n>Unlimited</td>
          <td *ngIf="selection.bucket_quota.max_size > -1">
            {{ selection.bucket_quota.max_size | dimless }}
          </td>
        </tr>
        <tr>
          <td i18n
              class="bold">Maximum objects</td>
          <td *ngIf="selection.bucket_quota.max_objects <= -1"
              i18n>Unlimited</td>
          <td *ngIf="selection.bucket_quota.max_objects > -1">
            {{ selection.bucket_quota.max_objects }}
          </td>
        </tr>
      </tbody>
    </table>
  </div>

  <!-- Locking -->
  <legend i18n>Locking</legend>
  <table class="table table-striped table-bordered">
    <tbody>
      <tr>
        <td i18n
            class="bold w-25">Enabled</td>
        <td class="w-75">{{ selection.lock_enabled | booleanText }}</td>
      </tr>
      <ng-container *ngIf="selection.lock_enabled">
        <tr>
          <td i18n
              class="bold">Mode</td>
          <td>{{ selection.lock_mode }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Days</td>
          <td>{{ selection.lock_retention_period_days }}</td>
        </tr>
      </ng-container>
    </tbody>
  </table>
</ng-container>