mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
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:
commit
0e813791fe
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue