horizon/openstack_dashboard/dashboards/project/stacks/templates/stacks/_stack_info.html
liyingjun 69d25c4ca3 Always show stack status reason in topology
Currently, only when the stack is in error status, the stack status
reason will be displayed, otherwise, there will be two line with
exactly same words, and this makes the enduser confuse. So fixes
this by changing to not show anything when stack in not in error
status.

Change-Id: Ifcd8def6b452ecccef9a8daa0e31504cffa2d6ad
Closes-bug: #1428580
2015-03-09 16:52:06 +08:00

15 lines
500 B
HTML

<img src="{{ stack_image }}" width="35px" height="35px" />
<div id="stack_info">
<h3>{{ stack.stack_name }}</h3>
<p class="error">{{ stack.stack_status_desc }}</p>
</div>
<div class="clear"></div>
{% if stack.stack_status == 'CREATE_FAILED' %}
<p class="error">{{ stack.stack_status_reason }}</p>
{% endif %}
{% for output in stack.outputs %}
{% if output.output_key == 'WebsiteURL' %}
<a href="{{ output.output_value }}">{{ output.description }}</a>
{% endif %}
{% endfor %}