From 68994a77c8bb39ddc5fa31317543f877d51340c6 Mon Sep 17 00:00:00 2001 From: Anton Ignatov Date: Wed, 18 Sep 2019 11:21:33 +0200 Subject: [PATCH] Fix file preview in inventory --- app/views/shared/_asset_link.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_asset_link.html.erb b/app/views/shared/_asset_link.html.erb index 70204927e..3b33a56ad 100644 --- a/app/views/shared/_asset_link.html.erb +++ b/app/views/shared/_asset_link.html.erb @@ -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 %>