mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
17 lines
700 B
Text
17 lines
700 B
Text
|
|
<div class="pseudo-attachment-container" style="order: <%= assets_count - i %>">
|
|
<%= link_to rails_blob_path(asset.file, disposition: 'attachment'),
|
|
class: 'file-preview-link',
|
|
id: "modal_link#{asset.id}",
|
|
data: { no_turbolink: true,
|
|
id: true,
|
|
'preview-url': asset_file_preview_path(asset),
|
|
'order-atoz': order_atoz,
|
|
'order-ztoa': order_ztoa,
|
|
'order-old': i,
|
|
'order-new': assets_count - i,
|
|
} do %>
|
|
|
|
<%= render partial: 'shared/asset_placeholder.html.erb', locals: { edit_page: false, asset: asset } %>
|
|
<% end %>
|
|
</div>
|