{% load thumbnail %} {%ifequal rtopic.attachment_type "text"%}

-----
File Attachment :
{{rtopic.filename}}   Download

{% endifequal %} {%ifequal rtopic.attachment_type "image"%}

-----
Image Attachment :
{{rtopic.filename}}

{% thumbnail rtopic.file "200x200" as file_thumbnail %} {% endthumbnail %}   Download

{% endifequal %}