<div ng-controller="horizon.app.core.images.DrawerController as drawerCtrl">

  <div class="row">
    <dl class="col-md-2">
      <dt translate>Is Public</dt>
      <dd>{$ item.is_public | yesno $}</dd>
    </dl>
    <dl class="col-md-2">
      <dt translate>Protected</dt>
      <dd>{$ item.protected | yesno $}</dd>
    </dl>
    <dl class="col-md-2">
      <dt translate>Format</dt>
      <dd>{$ item.disk_format | noValue | uppercase $}</dd>
    </dl>
    <dl class="col-md-2">
      <dt translate>Size</dt>
      <dd>{$ item.size | bytes $}</dd>
    </dl>
  </div>

  <div class="row">
    <dl class="col-md-2">
      <dt translate>Min. Disk</dt>
      <dd>{$ item.min_disk | gb | noValue $}</dd>
    </dl>
    <dl class="col-md-2">
      <dt translate>Min. RAM</dt>
      <dd>{$ item.min_ram | mb | noValue $}</dd>
    </dl>
  </div>

  <div class="row" ng-if="drawerCtrl.metadataDefs && item.properties">
    <div class="col-sm-12">
      <metadata-display
        available="::drawerCtrl.metadataDefs"
        existing="item.properties">
      </metadata-display>
    </div>
  </div>
</div>

<div ng-controller="horizon.app.core.images.DrawerController as drawerCtrl">

  <div class="row">
    <dl class="col-md-2">
      <dt translate>Is Public</dt>
      <dd>{$ item.is_public | yesno $}</dd>
    </dl>
    <dl class="col-md-2">
      <dt translate>Protected</dt>
      <dd>{$ item.protected | yesno $}</dd>
    </dl>
    <dl class="col-md-2">
      <dt translate>Format</dt>
      <dd>{$ item.disk_format | noValue | uppercase $}</dd>
    </dl>
    <dl class="col-md-2">
      <dt translate>Size</dt>
      <dd>{$ item.size | bytes $}</dd>
    </dl>
  </div>

  <div class="row">
    <dl class="col-md-2">
      <dt translate>Min. Disk</dt>
      <dd>{$ item.min_disk | gb | noValue $}</dd>
    </dl>
    <dl class="col-md-2">
      <dt translate>Min. RAM</dt>
      <dd>{$ item.min_ram | mb | noValue $}</dd>
    </dl>
  </div>

  <div class="row" ng-if="drawerCtrl.metadataDefs">
    <div class="col-sm-12">
      <metadata-display
        available="::drawerCtrl.metadataDefs"
        existing="item.properties || item">
      </metadata-display>
    </div>
  </div>
</div>

Allow metadata to be shown whether v1 or v2 glance data (NG)
Allow metadata to be shown whether v1 or v2 glance data (NG)

The Angular Images drawer shows a fancy metadata widget, but only if the
data given is in Glance v1 format.  This patch allows for both v1 and v2
formats to be interpreted.

Change-Id: Id94d1082d6628f6f009d85481454e8db503a9391
Partially-Implements: blueprint horizon-glance-v2
