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

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

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

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

  Download

{% endifequal %}