mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Revert to fontawesome CDN link in reports and update wicked_pdf [SCI-5650]
This commit is contained in:
parent
bb458abec6
commit
7d31b99386
4 changed files with 15 additions and 9 deletions
2
Gemfile
2
Gemfile
|
@ -84,7 +84,7 @@ gem 'silencer' # Silence certain Rails logs
|
||||||
gem 'sneaky-save', git: 'https://github.com/einzige/sneaky-save'
|
gem 'sneaky-save', git: 'https://github.com/einzige/sneaky-save'
|
||||||
gem 'turbolinks', '~> 5.1.1'
|
gem 'turbolinks', '~> 5.1.1'
|
||||||
gem 'underscore-rails'
|
gem 'underscore-rails'
|
||||||
gem 'wicked_pdf', '~> 1.4.0'
|
gem 'wicked_pdf'
|
||||||
gem 'wkhtmltopdf-heroku', '2.12.5'
|
gem 'wkhtmltopdf-heroku', '2.12.5'
|
||||||
|
|
||||||
gem 'aws-sdk-rails'
|
gem 'aws-sdk-rails'
|
||||||
|
|
10
Gemfile.lock
10
Gemfile.lock
|
@ -210,7 +210,7 @@ GEM
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.12.2)
|
coffee-script-source (1.12.2)
|
||||||
concurrent-ruby (1.1.8)
|
concurrent-ruby (1.1.9)
|
||||||
crack (0.4.5)
|
crack (0.4.5)
|
||||||
rexml
|
rexml
|
||||||
crass (1.0.6)
|
crass (1.0.6)
|
||||||
|
@ -300,7 +300,7 @@ GEM
|
||||||
httparty (0.17.3)
|
httparty (0.17.3)
|
||||||
mime-types (~> 3.0)
|
mime-types (~> 3.0)
|
||||||
multi_xml (>= 0.5.2)
|
multi_xml (>= 0.5.2)
|
||||||
i18n (1.8.7)
|
i18n (1.8.10)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
i18n-js (3.8.0)
|
i18n-js (3.8.0)
|
||||||
i18n (>= 0.6.6)
|
i18n (>= 0.6.6)
|
||||||
|
@ -366,7 +366,7 @@ GEM
|
||||||
mini_magick (4.11.0)
|
mini_magick (4.11.0)
|
||||||
mini_mime (1.0.2)
|
mini_mime (1.0.2)
|
||||||
mini_portile2 (2.5.1)
|
mini_portile2 (2.5.1)
|
||||||
minitest (5.14.3)
|
minitest (5.14.4)
|
||||||
momentjs-rails (2.17.1)
|
momentjs-rails (2.17.1)
|
||||||
railties (>= 3.1)
|
railties (>= 3.1)
|
||||||
msgpack (1.4.2)
|
msgpack (1.4.2)
|
||||||
|
@ -614,7 +614,7 @@ GEM
|
||||||
websocket-extensions (>= 0.1.0)
|
websocket-extensions (>= 0.1.0)
|
||||||
websocket-extensions (0.1.5)
|
websocket-extensions (0.1.5)
|
||||||
whacamole (1.2.0)
|
whacamole (1.2.0)
|
||||||
wicked_pdf (1.4.0)
|
wicked_pdf (2.1.0)
|
||||||
activesupport
|
activesupport
|
||||||
wkhtmltopdf-heroku (2.12.5.0)
|
wkhtmltopdf-heroku (2.12.5.0)
|
||||||
xpath (3.2.0)
|
xpath (3.2.0)
|
||||||
|
@ -732,7 +732,7 @@ DEPENDENCIES
|
||||||
webmock
|
webmock
|
||||||
webpacker (~> 4.0.0)
|
webpacker (~> 4.0.0)
|
||||||
whacamole
|
whacamole
|
||||||
wicked_pdf (~> 1.4.0)
|
wicked_pdf
|
||||||
wkhtmltopdf-heroku (= 2.12.5)
|
wkhtmltopdf-heroku (= 2.12.5)
|
||||||
yomu!
|
yomu!
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,14 @@ module ReportsHelper
|
||||||
"<span class=\"label step-label-#{style}\">[#{text}]</span>".html_safe
|
"<span class=\"label step-label-#{style}\">[#{text}]</span>".html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def font_awesome_cdn_link_tag
|
||||||
|
stylesheet_link_tag(
|
||||||
|
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/fontawesome.min.css',
|
||||||
|
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/regular.min.css',
|
||||||
|
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/solid.min.css'
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
def filter_steps_for_report(steps, settings)
|
def filter_steps_for_report(steps, settings)
|
||||||
include_completed_steps = settings.dig('task', 'protocol', 'completed_steps')
|
include_completed_steps = settings.dig('task', 'protocol', 'completed_steps')
|
||||||
include_uncompleted_steps = settings.dig('task', 'protocol', 'uncompleted_steps')
|
include_uncompleted_steps = settings.dig('task', 'protocol', 'uncompleted_steps')
|
||||||
|
|
|
@ -4,9 +4,7 @@
|
||||||
<meta charset='utf-8' />
|
<meta charset='utf-8' />
|
||||||
<%= wicked_pdf_stylesheet_link_tag "application" %>
|
<%= wicked_pdf_stylesheet_link_tag "application" %>
|
||||||
<%= wicked_pdf_stylesheet_link_tag "reports_pdf" %>
|
<%= wicked_pdf_stylesheet_link_tag "reports_pdf" %>
|
||||||
<%= wicked_pdf_stylesheet_pack_tag "fonts" %>
|
<%= font_awesome_cdn_link_tag %>
|
||||||
<%= wicked_pdf_stylesheet_pack_tag "fontawesome" %>
|
|
||||||
<%= wicked_pdf_stylesheet_link_tag "bootstrap" %>
|
|
||||||
<%= wicked_pdf_javascript_include_tag "jquery" %>
|
<%= wicked_pdf_javascript_include_tag "jquery" %>
|
||||||
<%= wicked_pdf_javascript_include_tag "handsontable.full" %>
|
<%= wicked_pdf_javascript_include_tag "handsontable.full" %>
|
||||||
<!-- Libraries for formulas -->
|
<!-- Libraries for formulas -->
|
||||||
|
|
Loading…
Reference in a new issue