2019-05-13 22:53:58 +08:00
|
|
|
|
2019-05-06 15:56:26 +08:00
|
|
|
<div class="pseudo-attachment-container" style="order: <%= assets_count - i %>">
|
2019-08-07 19:29:04 +08:00
|
|
|
<%= link_to rails_blob_path(asset.file, disposition: 'attachment'),
|
2019-04-09 16:00:56 +08:00
|
|
|
class: 'file-preview-link',
|
|
|
|
id: "modal_link#{asset.id}",
|
2019-05-13 22:53:58 +08:00
|
|
|
data: { no_turbolink: true,
|
|
|
|
id: true,
|
2019-04-09 16:00:56 +08:00
|
|
|
'preview-url': asset_file_preview_path(asset),
|
2019-06-11 16:08:33 +08:00
|
|
|
'order-atoz': order_atoz,
|
|
|
|
'order-ztoa': order_ztoa,
|
2019-04-09 16:00:56 +08:00
|
|
|
'order-old': i,
|
|
|
|
'order-new': assets_count - i,
|
|
|
|
} do %>
|
|
|
|
|
2019-07-10 20:37:23 +08:00
|
|
|
<%= render partial: 'shared/asset_placeholder.html.erb', locals: { edit_page: false, asset: asset } %>
|
2019-04-26 21:20:39 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|