{% extends "infrastructure/overview/deployment_base.html" %}

{% load i18n %}
{% load url from future%}

{% block deployment-icon %}
  <i class="fa fa-exclamation-circle text-danger"></i>
{% endblock %}

{% block deployment-title %}
            {% if stack.is_delete_failed %}
                {% trans "Undeploying failed" %}
            {% elif stack.is_failed %}
                {% trans "Deployment failed" %}
            {% else %}
                {% trans "Failure" %}
            {% endif %}
{% endblock %}

{% block deployment-info %}
{% if last_failed_events %}
<strong>{% trans "Last failed events:" %}</strong>
{% for event in last_failed_events %}
<div>
  <dl>
    <dt>{% trans "Timestamp" %}</dt>
    <dd><time datetime="{{ event.event_time }}">{{ event.event_time }}</time></dd>
    <dt>{% trans "Resource Name" %}</dt>
    <dd>{{ event.resource_name }}</dd>
    <dt>{% trans "Status" %}</dt>
    <dd>{{ event.resource_status }}</dd>
    <dt>{% trans "Reason" %}</dt>
    <dd>{{ event.resource_status_reason }}</dd>
  </dl>
</div>
{% endfor %}
{% endif %}
<p><a href="{% url 'horizon:infrastructure:history:index' %}">See full log</a></p>
{% endblock %}

{% block deployment-buttons %}
{% endblock %}


{% extends "infrastructure/overview/deployment_base.html" %}

{% load i18n %}
{% load url from future%}

{% block deployment-icon %}
  <i class="fa fa-exclamation-circle text-danger"></i>
{% endblock %}

{% block deployment-title %}
            {% if stack.is_delete_failed %}
                {% trans "Undeploying failed" %}
            {% elif stack.is_failed %}
                {% trans "Deployment failed" %}
            {% else %}
                {% trans "Failure" %}
            {% endif %}
{% endblock %}

{% block deployment-info %}
{% if last_failed_events %}
<strong>{% trans "Last failed events:" %}</strong>
{% for event in last_failed_events %}
<div>
  <dl>
    <dt>{% trans "Timestamp" %}</dt>
    <dd><time datetime="{{ event.event_time }}">{{ event.event_time }}</time></dd>
    <dt>{% trans "Resource Name" %}</dt>
    <dd>{{ event.resource_name }}</dd>
    <dt>{% trans "Status" %}</dt>
    <dd>{{ event.resource_status }}</dd>
    <dt>{% trans "Reason" %}</dt>
    <dd>{{ event.resource_status_reason }}</dd>
  </dl>
</div>
{% endfor %}
{% endif %}
<p><a href="{% url 'horizon:infrastructure:history:index' %}">See full log</a></p>
{% endblock %}

{% block deployment-buttons %}
  {{ block.super }}
{% endblock %}


Add missing undeploy button in stack failure case
Add missing undeploy button in stack failure case

Change-Id: Idf54fa96e512f2f34c39e428f24e18817f80ff29
