scinote-web/app/views/assets/_asset_link.html.erb
2020-09-25 15:06:09 +02:00

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 %>