scinote-web/app/views/shared/_asset_link.html.erb

14 lines
488 B
Text
Raw Normal View History

<%= link_to download_asset_path(asset),
class: 'file-preview-link',
id: "modal_link#{asset.id}",
data: {
id: true,
no_turbolink: true,
status: asset.file.processing? ? 'asset-loading' : 'asset-present',
'present-url': file_present_asset_path(asset.id),
'preview-url': asset_file_preview_path(asset)
} do %>
<%= render partial: "shared/asset_link_placeholder.html.erb",
locals: { asset: asset, display_image_tag: display_image_tag } %>
2018-03-30 17:50:28 +08:00
<% end %>