{% extends "base.html" %} {% import "_icons.html" as icons with context %} {% import "_menus.html" as menus with context %} {% block title %}{{ t('review.title', title=title) }} - Leicht·Facile{% endblock %} {% block body_class %}fit-screen{% endblock %} {% block content %} {% set counts = v.counts %} {% set fc = v.fact_counts %} {% set sc = v.segment_counts %} {% set doc_lang = v.draft.lang %} {% set total = v.items %}
{{ t('site.drafts') }}{{ icons.icon('chevron-right', 12) }}

{{ title }}

{{ t('status.' ~ job.status) }}
{{ t.language(doc_lang, job.config.region) }} · {{ v.draft.level }} · {{ t.get('condition.short.' ~ job.config.condition, job.config.condition) }} {{ icons.sev('error' if counts.error else 'none') }}{{ t('count.errors', n=counts.error) }} {{ icons.sev('warn') }}{{ t('count.warnings', n=counts.warn) }} {% if fc.total %}{{ t('review.facts_present', present=fc.present, total=fc.total) }}{% endif %}

{{ t('review.source') }}

{{ t('review.sentences', n=sc.sentences) }}
{{ t('review.legend.linked') }} {% if sc.unused %}{{ t('review.legend.unused_n', count=sc.unused) }}{% endif %} {% if sc.omitted %}{{ t('review.tag.left_out') }}{{ sc.omitted }}{% endif %}
{% for row in v.segments %} {% set seg = row.segment %} {% if row.state == "heading" %}

{{ seg.id }}{{ seg.text }}

{% else %}

{{ seg.id }} {% if seg.kind == "list_item" %}• {% endif %}{{ seg.text }} {% if row.state == "omitted" %}{{ t('review.tag.left_out') }}{{ row.note }} {% elif row.state == "unused" %}{{ t('review.tag.unused') }}{% endif %}

{% endif %} {% endfor %}

{{ t('draft.version', version=v.draft.version) }}

{{ t('review.blocks', n=v.rows | length) }}
{% if job.config.notice %}

{{ t('review.notice') }}{{ job.config.notice }}

{% endif %} {% for row in v.rows %} {% set b = row.block %}
{{ b.id }} {% if row.worst %}{{ icons.sev(row.worst, t('count.findings', n=row.issues | length)) }}{% if row.counted %}{% endif %}{% elif row.issues %}{{ icons.sev('info', t('count.findings', n=row.issues | length)) }}{% endif %}

{{ b.text }}{{ row.text }}

{{ icons.decision_states() }}
{% if row.issues %}
{% for i in row.issues %}
{{ icons.sev(i.severity, t('sev.' ~ i.severity)) }}
{{ i.rule_id }}{{ icons.icon('chip' if i.source == 'judge' else 'code', 12) }}{{ t('review.tag.judge') if i.source == 'judge' else t('review.tag.code') }}
{{ i.message }}
{% if i.suggestion %}
{{ t('review.suggestion', text='') }}{{ i.suggestion }}{% if i.applicable %}{% endif %}
{% endif %}
{% endfor %}
{% endif %} {% if b.fact_ids %}
{{ t('review.carries') }}{% for fid in b.fact_ids %}{% set f = v.facts_by_id.get(fid) %}{{ fid }}{% if f %}{{ f.expected or (f.fact.text | truncate(34, True, '…', 0)) }}{% endif %}{% endfor %}
{% endif %}
{% endfor %} {% if v.glossary_rows %}

{{ t('review.glossary') }} {{ t('review.glossary_review_hint') }}

{% for g in v.glossary_rows %}
{{ g.gid }}

{{ g.entry.term }} {{ g.entry.explanation }}{{ g.text }}

{{ icons.decision_states() }}
{% if g.entry.origin == 'vocabulary' %}

{{ t('review.glossary_vocabulary_title') }}

{% endif %}
{% endfor %} {% endif %}
{{ t('js.decided', decided=v.decided, total=total) }}
{% endblock %}