d69fe09bc7
Previous commit broken heat resource drill down:
f38ddf2032 (diff-15e3003726d7b90816528ee8248b000f)
This patch fixes the ID attribute, correctly specifies the template,
alters the page to match other detail page styles, and adds a UT to
prevent regression.
Change-Id: Ie3f76d6666f4e3154fbcb5808c8f8b841e650a02
Co-Authored-By: Rob Cresswell <robert.cresswell@outlook.com>
Closes-bug: #1531341
39 lines
1.2 KiB
HTML
39 lines
1.2 KiB
HTML
{% load i18n sizeformat %}
|
|
|
|
<div class="detail">
|
|
<dl class="dl-horizontal">
|
|
<dt>{% trans "Stack Resource ID" %}</dt>
|
|
<dd>{{ resource.resource_name }}</dd>
|
|
<dt>{% trans "Resource ID" %}</dt>
|
|
<dd>
|
|
{% if resource_url %}
|
|
<a href="{{ resource_url }}">
|
|
{{ resource.physical_resource_id }}
|
|
</a>
|
|
{% else %}
|
|
{{ resource.physical_resource_id }}
|
|
{% endif %}
|
|
</dd>
|
|
<dt>{% trans "Stack Resource Type" %}</dt>
|
|
<dd>{{ resource.resource_type }}</dd>
|
|
<dt>{% trans "Description" %}</dt>
|
|
<dd>{{ resource.description }}</dd>
|
|
</dl>
|
|
|
|
<h4>{% trans "Status" %}</h4>
|
|
<hr class="header_rule">
|
|
<dl class="dl-horizontal">
|
|
<dt>{% trans "Last Updated" %}</dt>
|
|
<dd>{{ resource.updated_time|parse_isotime|timesince_or_never }}</dd>
|
|
<dt>{% trans "Status" %}</dt>
|
|
<dd>
|
|
{% blocktrans with resource_status=resource.resource_status|title|replace_underscores resource_status_reason=resource.resource_status_reason %}{{ resource_status }}: {{ resource_status_reason }}{% endblocktrans %}
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4>{% trans "Resource Metadata" %}</h4>
|
|
<hr class="header_rule">
|
|
<pre>{{ metadata }}
|
|
</pre>
|
|
</div>
|