All files / src/app/ceph/rgw/rgw-bucket-details rgw-bucket-details.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 1022x                                                                                                                                                                                                          
<tabset *ngIf="selection.hasSingleSelection">
  <tab i18n-heading heading="Details">
    <div *ngIf="bucket">
      <table class="table table-striped table-bordered">
        <tbody>
          <tr>
            <td i18n
                class="bold col-sm-1">Name</td>
            <td class="col-sm-3">{{ bucket.bid }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">ID</td>
            <td>{{ bucket.id }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Owner</td>
            <td>{{ bucket.owner }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Index type</td>
            <td>{{ bucket.index_type }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Placement rule</td>
            <td>{{ bucket.placement_rule }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Marker</td>
            <td>{{ bucket.marker }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Maximum marker</td>
            <td>{{ bucket.max_marker }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Version</td>
            <td>{{ bucket.ver }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Master version</td>
            <td>{{ bucket.master_ver }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Modification time</td>
            <td>{{ bucket.mtime | cdDate }}</td>
          </tr>
          <tr>
            <td i18n
                class="bold col-sm-1">Zonegroup</td>
            <td>{{ bucket.zonegroup }}</td>
          </tr>
        </tbody>
      </table>
 
      <!-- Bucket quota -->
      <div *ngIf="bucket.bucket_quota">
        <legend i18n>Bucket quota</legend>
        <table class="table table-striped table-bordered">
          <tbody>
            <tr>
              <td i18n
                  class="bold col-sm-1">Enabled</td>
              <td class="col-sm-3">{{ bucket.bucket_quota.enabled | booleanText }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Maximum size</td>
              <td *ngIf="bucket.bucket_quota.max_size <= -1"
                  i18n
                  class="col-sm-3">Unlimited</td>
              <td *ngIf="bucket.bucket_quota.max_size > -1"
                  class="col-sm-3">
                {{ bucket.bucket_quota.max_size | dimless }}
              </td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Maximum objects</td>
              <td *ngIf="bucket.bucket_quota.max_objects <= -1"
                  i18n
                  class="col-sm-3">Unlimited</td>
              <td *ngIf="bucket.bucket_quota.max_objects > -1"
                  class="col-sm-3">
                {{ bucket.bucket_quota.max_objects }}
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </tab>
</tabset>