mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
9 lines
370 B
Text
9 lines
370 B
Text
<%= link_to rails_blob_path(asset.file, disposition: 'attachment'),
|
|
class: 'file-preview-link',
|
|
id: "modal_link#{asset.id}",
|
|
data: { no_turbolink: true,
|
|
id: true,
|
|
status: 'asset-present',
|
|
'preview-url': asset_file_preview_path(asset) } do %>
|
|
<%= truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH) %>
|
|
<% end %>
|