{% load i18n %} {% load forum_permission_tags %} {% get_permission 'can_download_files' post.topic.forum request.user as user_can_download_files %} {% if post.attachments.exists and user_can_download_files %}
 {% trans "Attachments" %}
{% for attachment in post.attachments.all %}
 {{ attachment.filename }} ({{ attachment.file.size|filesizeformat }}) {% if attachment.comment %}

{{ attachment.comment }}

{% endif %}
{% endfor %}
{% endif %}