2019-04-27 18:46:45 +08:00
|
|
|
<div class="pseudo-attachment-container" style="order: <%= assets_count - i %>">
|
2019-04-27 04:59:38 +08:00
|
|
|
<%= link_to '',
|
|
|
|
class: 'file-preview-link',
|
2019-04-27 18:46:45 +08:00
|
|
|
id: "marvin_js_sketch_#{sketch.id}",
|
2019-04-27 04:59:38 +08:00
|
|
|
data: { no_turbolink: true, id: true, status: 'asset-present',
|
|
|
|
'preview-url': '',
|
2019-04-27 18:46:45 +08:00
|
|
|
'order-atoz': az_ordered_assets_index(step, sketch.id),
|
|
|
|
'order-ztoa': assets_count - az_ordered_assets_index(step, sketch.id),
|
|
|
|
'order-old': i,
|
|
|
|
'order-new': assets_count - i,
|
|
|
|
'asset-type': 'marvin-sketch',
|
|
|
|
'asset-id': sketch.id
|
2019-04-27 04:59:38 +08:00
|
|
|
} do %>
|
2019-04-27 19:51:35 +08:00
|
|
|
<%= render partial: 'assets/marvinjs/marvin_sketch_card_placeholder.html.erb',
|
|
|
|
locals: { edit_page: false, sketch: sketch } %>
|
2019-04-27 04:59:38 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|