2019-10-22 10:58:04 +02:00
|
|
|
<%= render_to_element(".attachment-link[data-attachment-id=\"#{@attachment.id}\"]",
|
2019-05-21 14:21:55 +02:00
|
|
|
partial: 'shared/attachment/show',
|
|
|
|
outer: true,
|
|
|
|
locals: { attachment: @attachment, user_can_upload: @user_can_upload }) %>
|
|
|
|
|
2020-12-10 12:50:40 +01:00
|
|
|
<% if @attachment.virus_scanner.pending? || @attachment.watermark_pending? %>
|
2019-05-21 14:21:55 +02:00
|
|
|
<%= fire_event('attachment:update', { url: attachment_url(@attachment.id, { signed_id: @attachment.blob.signed_id, user_can_upload: @user_can_upload }) }.to_json ) %>
|
|
|
|
<% end %>
|