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

10 lines
370 B
Text
Raw Normal View History

<%= link_to rails_blob_path(asset.file, disposition: 'attachment'),
2019-06-28 14:17:09 +08:00
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 %>
2019-09-18 17:21:33 +08:00
<%= truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH) %>
2018-03-30 17:50:28 +08:00
<% end %>