{% if data.job.notfound %} {# Unlikely in production, but likely in development where dbs get reset #}

{{ __('The job no longer exists') }}

{% elif data.job.canceling %} {% if data.job.canCancel %}

{{ __(data.job.labels.canceling or 'Canceling...') }}

{% else %}

{{ __(data.job.labels.stopping or 'Stopping...') }}

{% endif %} {% elif data.job.status == 'failed' %}

{{ __(data.job.labels.failed or 'Failed') }}

{% elif data.job.status == 'canceled' %}

{{ __(data.job.labels.canceled or 'Canceled') }}

{% elif data.job.status == 'stopped' %}

{{ __(data.job.labels.stopped or 'Stopped') }}

{% elif data.job.status == 'completed' %}

{{ __(data.job.labels.completed or 'Completed') }}

{% else %}

{{ __(data.job.labels.running or 'In Progress...') }}

{% endif %} {# Different jobs might give us more or less to work with. #} {# Don't display a table unless we have info on processed items #} {% if data.job.processed %}
{{ __(data.job.labels.good or 'Successful') }}{{ data.job.good }}
{{ __(data.job.labels.bad or 'Errors') }}{{ data.job.bad or 0 }}
{% endif %} {# Don't display a progress bar unless we can compute it from a known total #} {% if data.job.total %}
{{ data.job.percentage }}%
{% endif %}