{% for attachment in item %}
Discard {% if attachment.is_image %} {{attachment.name}} {% else %} {{attachment.name}} {% endif %}
{{attachment.optimized_name}} {% if attachment.is_image %}
{% else %} {% endif %}
{% endfor %}