aboutsummaryrefslogtreecommitdiff
path: root/lib/waev_web
diff options
context:
space:
mode:
Diffstat (limited to 'lib/waev_web')
-rw-r--r--lib/waev_web/templates/exports/show.html.eex3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/waev_web/templates/exports/show.html.eex b/lib/waev_web/templates/exports/show.html.eex
index 77727a8..0ecf87b 100644
--- a/lib/waev_web/templates/exports/show.html.eex
+++ b/lib/waev_web/templates/exports/show.html.eex
@@ -26,6 +26,9 @@ ID: <%= @id %>
<% else %>
<i><%= filename %></i> (fichero adjunto no disponible)
<% end %>
+ <% %Waev.Export.Message.Photo{filename: filename, mime: mime, blob: blob} -> %>
+ <div><img alt="<%= filename %>" src="data:<%= mime %>;base64,<%= blob %>" /></div>
+ <div><a href="<%= Routes.exports_path(@conn, :get_attachment, @id, filename) %>"><%= filename %></a></div>
<% nil -> %>
<% end %>
<%= message.text %>