{# The shortest chain of references (the recursive CTE, ≤ 6 hops) and its drawing #} {% if error %} {% elif trace and trace.path %}
Ścieżka: {{ trace.length }} {{ "krok" if trace.length == 1 else ("kroki" if trace.length % 10 in (2, 3, 4) and trace.length % 100 not in (12, 13, 14) else "kroków") }}{% if not directed %} (w obie strony){% endif %}
    {% for e in trace.path %}
  1. art. {{ e.from.num }} ({{ e.from.act_title }}) → art. {{ e.to.num }} ({{ e.to.act_title }}) {{ kind_label[e.kind] }}{% if e.reverse %} (pod prąd){% endif %}
    {{ e.context }}
  2. {% endfor %}
{% elif trace %}
Brak ścieżki odesłań w granicach {{ trace.max_depth }} kroków{% if directed %} — spróbuj w obie strony{% endif %}. Graf odesłań jest rzadki: często to prawdziwa odpowiedź.
{% else %}
Podaj dwa artykuły.
{% endif %}