Fix file preview in inventory

This commit is contained in:
Anton Ignatov 2019-09-18 11:21:33 +02:00
parent 64306cfb2a
commit 68994a77c8

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