{% for attachment in attachments %}
{% if attachment.is_image %} {{attachment.file_name}}
{% endif %} {{ attachment.file_name }}
{% endfor %}