pattern_list.html 448 Bytes
{% if patterns|length == 1 %}
    {% include "pattern_link.html" with pattern=patterns.0 %}
{% else %}
    {% spaceless %}
        {% for p in patterns %}
            <input type="radio" name="pattern" class="highlight-pattern p{{ p.id }}" data-pattern="{{ p.id }}"/>
            {% include "pattern_link.html" with pattern=p %}
            {% if not forloop.last %}<span> /</span>{% endif %}
        {% endfor %}
    {% endspaceless %}
{% endif %}