{% load i18n attachments_tags thumbnail static %}

{% trans "Attached files" %}

{% block info_list_attachments %} {% endblock info_list_attachments %} {% if perms|read_attachment %} {% get_attachments_for object as "attachments_list" %} {% if attachments_list %} {% block inclusion_attachment_table %} {% include "paperclip/_attachment_table.html" %} {% endblock inclusion_attachment_table %} {% else %} {% trans "No file attached" %} {% endif %} {% else %} {% trans "You are not allowed to see attachments." %} {% endif %}
{% block permissions_add_attachment %} {% if perms|add_attachment %}
{% attachment_form object %}
{% endif %} {% endblock permissions_add_attachment %}