{#- Preview of a team checks file (vocation_pages._checks_html): the rules understood, the file's errors and, for each rule, the current pages that break it. Rendered alone, with `_`, `locale`, `preview`, `rules` ((rule, pages) pairs) and `synced`. -#} {%- if preview.checks.errors %}
{{ _("These lines have errors: the rules concerned would be ignored, and the file cannot be saved as is.") }}
| {{ _("Rule") }} | {{ _("Checks") }} | {{ _("Pages") }} | {% if synced %}{{ _("Pages that break it") }} | {% endif %}
|---|---|---|---|
| {{ rule.title }} {% if rule.blocks %}{{ _("blocks") }}{% else %}{{ _("warns") }}{% endif %}{% if rule.message %} {{ rule.message }}{% endif %} |
{{ _(rule.what()) }} | {% if rule.paths %}{{ rule.paths|join(", ") }}{% else %}{{ _("all") }}{% endif %}{% if rule.skip %} {{ _("except {paths}", paths=rule.skip|join(", ")) }}{% endif %} |
{% if synced %}{{ count }} | {% endif %}
{% if preview.complete %}{{ _(pl(preview.examined, "Counted on the {n} current page.", "Counted on the {n} current pages."), n=preview.examined) }}{% else %}{{ _("Count stopped after {n} pages: the space is large, the numbers are partial.", n=preview.examined) }}{% endif %}
{%- endif %} {%- elif not preview.checks.errors %}{{ _("No rule: write a level-2 heading per rule, followed by its keys (- pattern: …).") }}
{%- endif %}