{% extends "wagtailadmin/generic/inspect.html" %}
{% load i18n %}

{% block header %}
    {{ block.super }}
    {% if object.is_failed %}
        <div class="nice-padding w-mt-5">
            <a class="button" href="{% url 'wagtailsnippets_task_task:retry' pk=object.id %}">{% trans "Retry" %}</a>
        </div>
    {% endif %}
{% endblock %}
