2020-08-01 21:26:06 +02:00
|
|
|
{% macro attachments(comment) %}
|
|
|
|
{% if comment.attachments %}
|
2020-09-26 12:31:17 +02:00
|
|
|
<hr style="opacity:0.2;">
|
2020-08-01 21:26:06 +02:00
|
|
|
<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>
|
2021-04-27 19:35:37 +02:00
|
|
|
<td>{{ a.size | humanize(unit='o') }}</td>
|
2020-08-01 21:26:06 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</details>
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|