{#- "Quality" block of a tidy-up run (services/tidy_metrics.py), measured without AI before the commit. To include in a run's card, with `run` in the context: {% include "tidy-metrics.html" %}. Nothing is shown for a run without measurements (failure, or older than the measurement). Keys read with m["…"]: `items` is also a dict method. -#} {%- set m = run.metrics -%} {%- if m -%} {%- set pages = m["pages"] or {} -%} {%- set links = m["broken_links"] or {} -%} {%- set items = m["items"] or {} -%} {%- set per = (m["usage"] or {})["per_item"] -%}
{% if m["issues"] %}{{ _(pl(m["issues"], "Quality: {count} point to check", "Quality: {count} points to check"), count=m["issues"]) }}{% else %}{{ _("Quality: nothing to report") }}{% endif %}
{%- endif %}