{% load submission %} {% load static %} {% collection_items items collection_name as collection %}
{% for item in collection %}
{% with thumb=item|underscore:'thumbnail_url' %} {% if thumb %} {% else %} {% with meta=item|underscore:'filemeta' %} {% if meta.type == 'audio' %} {% else %} {% endif %} {% endwith %} {% endif %} {# TODO: item models without a file (look at refs.0) #} {% endwith %}
{% endfor %}