{% load submission %} {% load static %} {% collection_items items collection_name as collection %}
{% for item in collection %}
{% with thumb=item|underscore:'artifact_url' referenced_file=refs.1 %} {% if thumb %} {% elif referenced_file %} {% with meta=item|underscore:'filemeta' %} {% if meta.type == 'audio' %} {% else %} {% endif %} {% endwith %} {% else %}
item {{ forloop.counter }}
{% endif %} {% endwith %}
{% endfor %}