From 86ed9427dbdbc65c5f4a12e3cb537decd3b65b9d Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Sat, 28 Sep 2024 01:05:18 +0200 Subject: [PATCH] Attachment boilerplate --- infrastructure/web/views/mail.twig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/infrastructure/web/views/mail.twig b/infrastructure/web/views/mail.twig index 6931564..0738e4f 100644 --- a/infrastructure/web/views/mail.twig +++ b/infrastructure/web/views/mail.twig @@ -35,6 +35,20 @@ {% else %}
{% endif %} + {% if mail.attachments %} +
+ {% for attachment in mail.attachments %} + 📎 {{ attachment.filename }} + {# + 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 %} +
+ {% endif %} + +

{{ mail.from.text }} | {{ mail.date| date }}