Fix file icons in report

This commit is contained in:
aignatov-bio 2021-06-30 14:35:23 +02:00
parent 73c86c8423
commit d0b4a75095

View file

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