Merge pull request #2064 from aignatov-bio/ai-sci-3873-fix-file-preview-in-inventory

Fix file preview in inventory [SCI-3873]
This commit is contained in:
aignatov-bio 2019-09-18 11:36:43 +02:00 committed by GitHub
commit f205e4aa80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,5 +5,5 @@
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 } %>
<%= truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH) %>
<% end %>