Don't try to wrap with a download link, every file already has one in the caption

This commit is contained in:
Jason Zimdars
2025-10-08 21:54:25 -05:00
parent 3dd3dcc2e7
commit 094c2c056b
@@ -18,9 +18,7 @@
</figure>
<% else %>
<div class="attachment attachment--file attachment--<%= blob.filename.extension -%>">
<%= link_to rails_blob_path(blob, disposition: :attachment), class: "attachment__figure", download: blob.filename, title: "Download #{blob.filename}" do %>
<%= render "active_storage/blobs/web/representation", blob: blob %>
<% end %>
<%= render "active_storage/blobs/web/representation", blob: blob %>
<div class="attachment__caption">
<div>