{% load thumbnail %}{% if items %} {% for generic_item in items %}{% with generic_item.subtype as item %} {{ item.default_alt_text }} {{ item.label }} {% endwith %}{% endfor %}{% else %} upload failed {% endif %}