mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
Fix Fontawesome styles inclusion in PDF reports [SCI-11302] (#8059)
This commit is contained in:
parent
22a9714aa0
commit
7dc201ed45
2 changed files with 2 additions and 9 deletions
|
@ -64,12 +64,6 @@ module ReportsHelper
|
|||
"<span class=\"label step-label-#{style}\">[#{text}]</span>".html_safe
|
||||
end
|
||||
|
||||
def font_awesome_links
|
||||
[{ url: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/fontawesome.min.css' },
|
||||
{ url: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/regular.min.css' },
|
||||
{ url: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/solid.min.css' }]
|
||||
end
|
||||
|
||||
def filter_steps_for_report(steps, settings)
|
||||
include_completed_steps = settings.dig('task', 'protocol', 'completed_steps')
|
||||
include_uncompleted_steps = settings.dig('task', 'protocol', 'uncompleted_steps')
|
||||
|
|
|
@ -92,7 +92,8 @@ module Reports
|
|||
'application',
|
||||
'reports_pdf',
|
||||
'bootstrap_pack',
|
||||
'handsontable.formula'
|
||||
'handsontable.formula',
|
||||
'fontawesome'
|
||||
]
|
||||
|
||||
javascript_files = [
|
||||
|
@ -119,8 +120,6 @@ module Reports
|
|||
{ content: fetch_asset_content("#{file_name}.css") }
|
||||
end
|
||||
|
||||
@style_tag_options.concat(font_awesome_links)
|
||||
|
||||
@script_tag_options = javascript_files.map do |file_name|
|
||||
{ content: fetch_asset_content("#{file_name}.js") }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue