{% extends "base.html" %} {% from "_remove.html" import remove_box with context %} {% block title %}{{ document.name }} ยท {{ t('common.app') }}{% endblock %} {% block main %}

{{ t('document.title', name=document.name) }}

{{ t('document.intro') }}

{% if analysing %}{{ t('document.analysing') }}{% endif %}

{% if failed %}

{{ t('document.analysis_failed', reason=failed.reason) }}{% if failed.details %} {{ t('common.details') }} {{ failed.details }}{% endif %}

{% endif %}

{{ t('document.step_check') }}

{% if report %}

{{ t('document.summary_chapters', n=chapters|length, chosen=chosen_chapters) }} {{ t('document.summary_edits', n=edit_count) }} {{ t('document.summary_heard', n=heard) }}

{% if report.problems %}

{{ t('document.problems') }}

    {% for problem in report.problems %}
  • {{ t('document.problem', step=problem.step, message=problem.message) }}
  • {% endfor %}
{% endif %} {% if report.not_run %}

{{ t('document.not_run', steps=report.not_run|join(', ')) }}

{% endif %} {% if report.warnings %}

{{ t('document.warnings') }}

    {% for warning in report.warnings %}
  • {{ warning }}
  • {% endfor %}
{% endif %}
{{ t('check.switches') }}

{{ t('check.switches_hint') }}

    {% for category in categories %}
  • {{ t('check.counts', **category.counts) }}
  • {% endfor %}
{{ t('check.chapters') }}

{{ t('check.chapters_hint') }}

    {% for chapter in chapters %}
  1. ({% if chapter.first_page %}{{ t('check.chapter_details', page=chapter.first_page, n=chapter.utterances) }}{% else %}{{ t('check.chapter_details_no_page', n=chapter.utterances) }}{% endif %}{% if chapter.references %}; {{ t('check.references') }}{% endif %})
  2. {% endfor %}

{{ t('check.changes') }}

{{ t('check.changes_hint') }}

{% for category in categories if category.total %}
{{ t('check.category_changes', label=category.label, n=category.total) }} {% if category.total > category.rows|length %}

{{ t('check.more', shown=category.rows|length, total=category.total) }}

{% endif %}
{% for row in category.rows %} {% endfor %}
{{ t('check.page') }}{{ t('check.chapter') }} {{ t('check.printed') }}{{ t('check.said') }} {{ t('check.reason') }}{{ t('check.status') }}
{{ row.page }}{{ row.chapter }}{{ row.printed }}{{ row.said }}{{ row.reason }}{{ row.status }}
{% endfor %} {% if file_links %}

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

{% endif %} {% else %}

{{ t('document.not_analysed') }}

{% if not analysing %}

{% endif %} {% endif %}

{{ t('document.step_voice') }}

{% if not voice_installed %}

{{ t('voice.missing') }} {{ t('voice.setup') }}

{% endif %}

{{ t('voice.licence') }} {{ licences }}

{% if voice_installed %}

{{ t('voice.preview_hint', limit=preview_limit) }}

{% endif %}

{{ t('document.step_make') }}

{% if document.has_audio %}

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

{% endif %}

{{ t('make.folder_hint') }}

{{ t('voice.remembered') }}

{% set blocked = 'needs_analysis' if not report else ('needs_chapters' if not chosen_chapters else ('needs_voice' if not voice_installed else '')) %}

{% if blocked %}{{ t('make.' + blocked) }}{% endif %}

{{ t('remove.heading') }}

{{ remove_box(document, removal, busy, false) }}
{% endblock %}