mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +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 %>
|