From 84216cb0f55481742340fab0f835407eefcb47fd Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Tue, 12 Dec 2017 01:37:04 +0900 Subject: [PATCH] Always display server description The description field is only shown when the description of a corresponding server has non-empty string. It is better to display "description" field regardless of its value. "description" field is supported since Mitaka release, so this commit always shows 'description' field rather than showing the field conditionally. Change-Id: I2064c6e8a625d4362ce00218528a09ef734087fc Closes-Bug: #1737558 --- .../instances/templates/instances/_detail_overview.html | 4 +--- 1 file changed, 1 insertion(+), 3 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 6a37b9a76d..ad0c0b64b1 100644 --- a/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html +++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_detail_overview.html @@ -4,10 +4,8 @@
{% trans "Name" %}
{{ instance.name }}
- {% if instance.description != None %}
{% trans "Description" %}
-
{{ instance.description }}
- {% endif %} +
{{ instance.description|default:_("-") }}
{% trans "ID" %}
{{ instance.id }}
{% trans "Status" %}