From 2281c3a4a7a3350e2b7a7b0fdfa212c04a9af69a Mon Sep 17 00:00:00 2001 From: Rob Cresswell Date: Wed, 30 Sep 2015 16:25:54 +0100 Subject: [PATCH] Show Image ID on Instance Overview Instances can be filtered by Image ID, but that ID isn't displayed. This patch shows the Image ID, and also makes the Flavour name more explicit. Change-Id: I38c59fb0a387f8f05d42b0a0107d0102a4ddc480 Partial-Bug: 1366320 --- .../templates/instances/_detail_overview.html | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html index 4d68ef906a..9fc6deb4ac 100644 --- a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html +++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html @@ -47,8 +47,8 @@

{% trans "Specs" %}


-
{% trans "Flavor" %}
{% if instance.full_flavor %} +
{% trans "Flavor Name" %}
{{ instance.full_flavor.name }}
{% trans "Flavor ID" %}
{{ instance.full_flavor.id }}
@@ -63,7 +63,8 @@
{{ instance.full_flavor.ephemeral }}{% trans "GB" %}
{% endif %} {% else %} - {% trans "Not available" %} +
{% trans "Flavor" %}
+
{% trans "Not available" %}
{% endif %}
@@ -113,14 +114,15 @@ {% with formatted_default_key_name=""|add:default_key_name|add:"" %}
{{ instance.key_name|default:formatted_default_key_name }}
{% endwith %} -
{% trans "Image Name" %}
-
- {% if instance.image %} - {{ instance.image_name }} - {% else %} - {% trans "None" %} - {% endif %} -
+ {% if instance.image %} +
{% trans "Image Name" %}
+
{{ instance.image_name }}
+
{% trans "Image ID" %}
+
{{ instance.image.id }}
+ {% else %} +
{% trans "Image" %}
+
{% trans "None" %}
+ {% endif %} {% with default_item_value=""|add:_("N/A")|add:"" %} {% for key, value in instance.metadata.items %}
{{ key|force_escape }}