{% extends "base.html" %} {% import "_icons.html" as icons with context %} {% block title %}{{ t('site.check') }} - Leicht·Facile{% endblock %} {% block content %}

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

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

{% if error %} {% endif %}

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

{{ t('js.chars', count=number(chars, ui_lang), max=number(max_chars, ui_lang)) }} {{ t('check.private') }}

{{ t('new.settings') }}

{{ t('index.level') }}
{% for level in ('A2', 'B1') %} {% endfor %}

{{ t('check.rules_hint', count=rules) }}

{% if view %}

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

{{ t('lang.' ~ view.lang) }} · {{ t('level.' ~ view.level) }}
{{ t('check.per100', errors=view.per_100(view.errors), warnings=view.per_100(view.warnings), infos=view.per_100(view.infos)) }} {{ t('check.summary', blocks=view.rows | length, sentences=view.metrics.sentences, words=view.metrics.avg_words, readability=view.readability_text) }} {{ t('check.shares', passive=view.metrics.pct_passive, genitive=view.metrics.pct_genitive, subordinate=view.metrics.pct_subordinate) }}
{% for row in view.rows %}
{{ row.block.id }}

{{ row.block.text }}

{% if row.issues %}
    {% for i in row.issues %}
  • {{ icons.sev(i.severity, t('sev.' ~ i.severity)) }}{{ i.rule_id }}{{ i.message }}{% if i.suggestion %} {{ t('check.suggestion', text=i.suggestion) }}{% endif %}
  • {% endfor %}
{% endif %}
{% endfor %} {% if view.finding_groups %}

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

{% for g in view.finding_groups %}
{{ icons.sev(g.worst, t('sev.' ~ g.worst)) }}{{ g.rule_id }}{{ g.title }}{{ g.issues | length }}
    {% for i in g.issues %}
  • {{ i.ref }}{{ i.message }}
  • {% endfor %}
{% endfor %} {% endif %} {% if not (view.errors or view.warnings or view.infos) %}

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

{% endif %}
{% endif %}
{% endblock %}