{# Reusable voting methods navigation snippet #} {% set is_all_route = (resulttype is defined and (not resulttype or resulttype == 'all')) %} {% if abif_id and nav_methods %}

Voting methods: {% for method in nav_methods %} {% set label = 'Pairwise' if method == 'pairwise' else method %} {% if method == 'pairwise' %} {% set href = '/id/' ~ abif_id ~ '/pairwise#pairwise' %} {% set is_current = (not is_all_route and ('dot' in result_types or 'wlt' in result_types)) %} {% else %} {% set href = '/id/' ~ abif_id ~ '/' ~ method ~ '#' ~ method %} {% set is_current = (not is_all_route and (method in result_types)) %} {% endif %} {% if is_current %} {{ label }} {% else %} {{ label }} {% endif %} {% if not loop.last %} • {% endif %} {% endfor %} • {% if is_all_route %} All methods {% else %} All methods {% endif %}

{% endif %}