Attachment boilerplate

pull/16/head
ClaraCrazy 2024-09-28 01:05:18 +02:00
parent 270d4d9fc2
commit 86ed9427db
1 changed files with 14 additions and 0 deletions

View File

@ -35,6 +35,20 @@
{% else %} {% else %}
<div class="mail_body"></div> <div class="mail_body"></div>
{% endif %} {% endif %}
{% if mail.attachments %}
<div class="mail_body">
{% for attachment in mail.attachments %}
<a href="">📎 {{ attachment.filename }}</a>
{#
Add actual button to download each file, inline.
Or even better. just an a href with filename.
very basic, like regular links look. maybe a paperclip icon
#}
{% endfor %}
</div>
{% endif %}
<h3 style="text-align: center;display: block;">{{ mail.from.text }} | {{ mail.date| date }}</h3> <h3 style="text-align: center;display: block;">{{ mail.from.text }} | {{ mail.date| date }}</h3>