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