{# Interactions: one explorer instead of nested tabs. Every pair is in the document; the script shows one at a time (selects, previous/next). Without JavaScript all pairs are listed one after another. #} {% set ns = namespace(n=0) %} {% for x_item in items %}{% set ns.n = ns.n + x_item.content['items'] | length %}{% endfor %}

Choose a pair

{{ ns.n }} pairs

Opens on the strongest pair. Use the selects, or step through all {{ ns.n }} pairs.

{% for x_item in items %} {% set x = x_item.name %} {% for y_item in x_item.content['items'] %} {% set y = y_item.name %} {% set pair_stats = stats.get((x | string, y | string)) or [] %}
{{ y }} against {{ x }} {% if pair_stats %} {% for st in pair_stats %}{{ st.label }} {{ st.value }}{% endfor %} {% endif %}
{{ y_item.render() }}
{% endfor %} {% endfor %}