{% macro attachments(comment) %}
{% if comment.attachments %}
<hr style="opacity:0.2;">
<summary>Pièces-jointes</summary>
<details>
<table>
    <tr><th>Nom</th><th>Taille</th></tr>
    {% for a in comment.attachments %}
    <tr>
        <td><a href="{{ a.url }}">{{ a.name }}</a></td>
        <td>{{ a.size | humanize(unit='o') }}</td>
    </tr>
    {% endfor %}
</table>
</details>
{% endif %}
{% endmacro %}
