diff options
author | Guillermo Ramos | 2020-02-06 20:27:35 +0100 |
---|---|---|
committer | Guillermo Ramos | 2020-02-06 20:27:35 +0100 |
commit | aa0213ad46ca0dcb3e64e14cee2676d8fdc60110 (patch) | |
tree | 56fbe69a03466e7bc4f28235a264a55c92ade7eb /lib/waev_web/templates/exports | |
parent | 5d091db1c1e0d3f237231bbd90d00b24ce273841 (diff) | |
download | waev-aa0213ad46ca0dcb3e64e14cee2676d8fdc60110.tar.gz |
/attachments -> /media
Diffstat (limited to 'lib/waev_web/templates/exports')
-rw-r--r-- | lib/waev_web/templates/exports/show.html.eex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/waev_web/templates/exports/show.html.eex b/lib/waev_web/templates/exports/show.html.eex index 425f2f8..265374a 100644 --- a/lib/waev_web/templates/exports/show.html.eex +++ b/lib/waev_web/templates/exports/show.html.eex @@ -21,7 +21,7 @@ <div class="wa-message"> <%= case message.attachment do %> <% %Waev.Export.Message.File{filename: filename, available: true, type: :photo} -> %> - <img class="wa-message-photo" alt="<%= filename %>" src="<%= Routes.exports_path(@conn, :get_attachment, @id, filename) %>" /> + <img class="wa-message-photo" alt="<%= filename %>" src="<%= Routes.exports_path(@conn, :get_media, @id, filename) %>" /> <% _ -> %> <% end %> <div class="wa-message-box"> @@ -29,7 +29,7 @@ <% %Waev.Export.Message.File{filename: filename, available: false} -> %> <i class="wa-message-text"><%= filename %></i> (fichero adjunto no disponible) <% %Waev.Export.Message.File{filename: filename, available: true, type: :file} -> %> - <a class="wa-message-text" href="<%= Routes.exports_path(@conn, :get_attachment, @id, filename) %>"><%= filename %></a> + <a class="wa-message-text" href="<%= Routes.exports_path(@conn, :get_media, @id, filename) %>"><%= filename %></a> <% _ -> %> <% end %> |