scinote-web/app/views/shared/_asset_link.html.erb
2019-09-18 11:21:33 +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 %>