Merge "Show Image ID on Instance Overview"

This commit is contained in:
Jenkins 2015-10-15 10:00:12 +00:00 committed by Gerrit Code Review
commit d8aaa41b91
1 changed files with 12 additions and 10 deletions

View File

@ -47,8 +47,8 @@
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl class="dl-horizontal">
<dt>{% trans "Flavor" %}</dt>
{% if instance.full_flavor %}
<dt>{% trans "Flavor Name" %}</dt>
<dd>{{ instance.full_flavor.name }}</dd>
<dt>{% trans "Flavor ID" %}</dt>
<dd>{{ instance.full_flavor.id }}</dd>
@ -63,7 +63,8 @@
<dd>{{ instance.full_flavor.ephemeral }}{% trans "GB" %}</dd>
{% endif %}
{% else %}
{% trans "Not available" %}
<dt>{% trans "Flavor" %}</dt>
<dd>{% trans "Not available" %}</dd>
{% endif %}
</dl>
</div>
@ -113,14 +114,15 @@
{% with formatted_default_key_name="<em>"|add:default_key_name|add:"</em>" %}
<dd>{{ instance.key_name|default:formatted_default_key_name }}</dd>
{% endwith %}
<dt>{% trans "Image Name" %}</dt>
<dd>
{% if instance.image %}
<a href="{{ instance.image_url }}">{{ instance.image_name }}</a>
<dt>{% trans "Image Name" %}</dt>
<dd><a href="{{ instance.image_url }}">{{ instance.image_name }}</a></dd>
<dt>{% trans "Image ID" %}</dt>
<dd>{{ instance.image.id }}</dd>
{% else %}
<em>{% trans "None" %}</em>
<dt>{% trans "Image" %}</dt>
<dd>{% trans "None" %}</dd>
{% endif %}
</dd>
{% with default_item_value="<em>"|add:_("N/A")|add:"</em>" %}
{% for key, value in instance.metadata.items %}
<dt>{{ key|force_escape }}</dt>