{% from "macros/user.html" import m_user_photo, m_user_link %} {% from "macros/form.html" import m_field %} {# default macros for displaying attachments #} {# attachments list #} {% macro m_attachments(entity) %} {%- if attachments.has_attachments(entity) %}
{%- endif %} {% endmacro %} {# single attachment #} {% macro m_attachment(attachment) %} {%- set entity = attachment.entity %} {%- set manager = attachments.manager(entity) %} {%- set can_edit = manager.can_edit(entity) %} {%- set can_delete = manager.can_delete(entity) %}{{ attachment.description }}