horizon/openstack_dashboard/dashboards/project/volumes/templates/volumes/volumes/_encryption_detail_overview.html
Brianna Poulos a8d2a3504c View encryption metadata for encrypted volumes
Although it is possible to see whether a volume is encrypted or not
encrypted (by viewing the "Encrypted" column of the volume), it is
not yet possible to view the encryption metadata for an encrypted
volume.

This patch adds a link to the "Yes" in the Encrypted column of the
volume, which displays an overview of the encryption metadata for
the volume when clicked.  This encryption metadata includes cipher,
key size, provider, control location, and volume type name.  Also
adds unit tests.

Change-Id: Ic57e64eb85b46e77ed03d86722523c316c873d18
Implements: blueprint view-volume-encryption-metadata
2015-01-08 17:32:28 -05:00

27 lines
805 B
HTML

{% load i18n %}
{% if encryption_metadata.provider %}
<h3>{% trans "Volume Encryption Overview" %}</h3>
<div class="info row detail">
<div class="col-sm-12">
<h4>{% trans "Info" %}</h4>
<hr class="header_rule">
<dl class="dl-horizontal">
<dt>{% trans "Volume Type Name" %}</dt>
<dd>{{ volume.volume_type }}</dd>
<dt>{% trans "Provider" %}</dt>
<dd>{{ encryption_metadata.provider }}</dd>
<dt>{% trans "Control Location" %}</dt>
<dd>{{ encryption_metadata.control_location }}</dd>
<dt>{% trans "Cipher" %}</dt>
<dd>{{ encryption_metadata.cipher }}</dd>
<dt>{% trans "Key Size (bits)" %}</dt>
<dd>{{ encryption_metadata.key_size }}</dd>
</dl>
</div>
</div>
{% else %}
<h3>{% trans "Volume is Unencrypted" %}</h3>
{% endif %}