{% load thumbnail %}{% if items %} {% for generic_item in items %}{% with generic_item.subtype as item %}