From d0b4a7509525990aa5a1efd5abac9cdb1376d829 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Wed, 30 Jun 2021 14:35:23 +0200 Subject: [PATCH] Fix file icons in report --- app/helpers/file_icons_helper.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/helpers/file_icons_helper.rb b/app/helpers/file_icons_helper.rb index 52fff0b59..2a9272e9b 100644 --- a/app/helpers/file_icons_helper.rb +++ b/app/helpers/file_icons_helper.rb @@ -47,9 +47,7 @@ module FileIconsHelper if image_link if report - image_tag("data:image/svg+xml;base64,#{ - Base64.encode64(File.read(Rails.root.join('app/assets/images/', image_link))) - }", class: 'image-icon') + wicked_pdf_image_tag(image_link, class: 'image-icon') else ActionController::Base.helpers.image_tag(image_link, class: 'image-icon') end