<%= 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 %>
  <%= render partial: 'shared/asset_placeholder.html.erb', locals: { edit_page: false, asset: asset } %>
<% end %>

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

Fix file preview in inventory
Fix file preview in inventory
