mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 11:46:25 +08:00
Fix file icons in export all [SCI-5685]
This commit is contained in:
parent
b93978cbd0
commit
6a1c073024
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ module FileIconsHelper
|
||||||
if image_link
|
if image_link
|
||||||
if report
|
if report
|
||||||
image_tag("data:image/svg+xml;base64,#{
|
image_tag("data:image/svg+xml;base64,#{
|
||||||
Base64.encode64(File.read('app/assets/images/' + image_link))
|
Base64.encode64(File.read(Rails.root.join('app/assets/images/', image_link)))
|
||||||
}", class: 'image-icon')
|
}", class: 'image-icon')
|
||||||
else
|
else
|
||||||
ActionController::Base.helpers.image_tag(image_link, class: 'image-icon')
|
ActionController::Base.helpers.image_tag(image_link, class: 'image-icon')
|
||||||
|
|
Loading…
Reference in a new issue