From a0eec8eadae94a71974868ac8d48820e0662857b Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Wed, 5 Feb 2020 14:17:41 +0100 Subject: Download attachments --- lib/waev_web/templates/exports/show.html.eex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/waev_web/templates/exports') diff --git a/lib/waev_web/templates/exports/show.html.eex b/lib/waev_web/templates/exports/show.html.eex index 2d72e2e..77727a8 100644 --- a/lib/waev_web/templates/exports/show.html.eex +++ b/lib/waev_web/templates/exports/show.html.eex @@ -20,8 +20,12 @@ ID: <%= @id %>
<% end %> <%= case message.attachment do %> - <% %Waev.Export.Message.File{filename: filename} -> %> - <%= filename %> + <% %Waev.Export.Message.File{filename: filename} = file -> %> + <%= if file.available do %> + <%= filename %> + <% else %> + <%= filename %> (fichero adjunto no disponible) + <% end %> <% nil -> %> <% end %> <%= message.text %> -- cgit v1.2.3