{% extends "base.html" %} {% block title %}{{ job.title }} ยท {{ t('common.app') }}{% endblock %} {% block main %}

{{ job.title }}

{{ t('job.state') }}: {{ t('job.state_' + job.state) }}

{% if job.state == 'running' %}

{{ t('job.progress') }}

{% if job.cancellable %}

{% endif %} {% endif %}

{% if job.state == 'done' and job.kind == 'audio' %}

{{ t('job.done_title') }}

{% if document %}

{{ t('listen.link') }}

{% endif %} {% if job.progress and job.progress.reused %}

{{ t('job.reused', n=job.progress.reused) }}

{% endif %}

{{ t('job.files') }}

{% if folder %}

{{ t('job.folder', folder=folder) }}

{% endif %} {% if skipped %}

{{ t('job.skipped') }}

{% endif %} {% endif %} {% if job.state == 'done' and job.kind == 'preview' %}

{{ t('js.preview_ready') }}

{% for file in job.files %}{% endfor %} {% endif %} {% if job.state == 'done' and job.kind == 'voices' %}

{{ t('setup.installed') }}

{% endif %} {% if job.state == 'failed' %}

{{ t('job.failed', reason=job.failure.reason) }}

{% if job.failure.details %}

{{ t('common.details') }} {{ job.failure.details }}

{% endif %} {% if job.error.error == 'output-exists' and job.kind == 'audio' %}

{% endif %} {% endif %} {% if job.state == 'cancelled' %}

{{ t('job.cancelled') }}

{% endif %} {% if job.kind == 'audio' and job.state in ('failed', 'cancelled') and not (job.error and job.error.error == 'output-exists') %}

{% endif %} {% if job.kind == 'audio' and job.state != 'running' and document %}

{% if cache_bytes %}{{ t('job.cache', size=size_text(cache_bytes)) }}{% else %}{{ t('job.cache_freed') }}{% endif %}

{% if cache_bytes %}

{% endif %} {% endif %} {% if document %}

{{ t('job.back') }}

{% endif %}
{% endblock %}