Merge pull request #3413 from aignatov-bio/ai-sci-5832-issue-in-reports-with-pip-file

Fix file icons in report [SCI-5832]
This commit is contained in:
Alex Kriuchykhin 2021-07-02 10:20:18 +02:00 committed by GitHub
commit 0e813791fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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