diff --git a/app/assets/javascripts/team_zip_exports/load_handson.js b/app/assets/javascripts/team_zip_exports/load_handson.js deleted file mode 100644 index cb5491b19..000000000 --- a/app/assets/javascripts/team_zip_exports/load_handson.js +++ /dev/null @@ -1,17 +0,0 @@ -/* global Handsontable */ -window.onload = function() { - var tables = document.getElementsByClassName('hot-table-container'); - var tableVals = document.getElementsByClassName('hot-table-contents'); - - for (let i = 0; i < tables.length; i += 1) { - tables[i].innerHTML = ''; - new Handsontable(tables[i], { - data: JSON.parse(tableVals[i].value).data, - rowHeaders: true, - colHeaders: true, - filters: true, - dropdownMenu: true, - formulas: true - }); - } -}; diff --git a/app/helpers/file_icons_helper.rb b/app/helpers/file_icons_helper.rb index adba2aab3..b6460e8c1 100644 --- a/app/helpers/file_icons_helper.rb +++ b/app/helpers/file_icons_helper.rb @@ -48,11 +48,9 @@ module FileIconsHelper image_link = Extends::FILE_ICON_MAPPINGS[file_ext] if Extends::FILE_ICON_MAPPINGS[file_ext] if image_link - if report - wicked_pdf_image_tag(image_link, class: 'image-icon') - else - ActionController::Base.helpers.image_tag(image_link, class: 'image-icon') - end + image_link = wicked_pdf_asset_base64(image_link) if report + + ActionController::Base.helpers.image_tag(image_link, class: 'image-icon') else '' end diff --git a/app/jobs/team_zip_export_job.rb b/app/jobs/team_zip_export_job.rb index 53a4fa9d1..5338a366d 100644 --- a/app/jobs/team_zip_export_job.rb +++ b/app/jobs/team_zip_export_job.rb @@ -2,6 +2,7 @@ require 'fileutils' require 'csv' +require 'vips' class TeamZipExportJob < ZipExportJob include StringUtility diff --git a/app/views/reports/elements/_my_module_result_asset_element.html.erb b/app/views/reports/elements/_my_module_result_asset_element.html.erb index 25c719b86..fe205856f 100644 --- a/app/views/reports/elements/_my_module_result_asset_element.html.erb +++ b/app/views/reports/elements/_my_module_result_asset_element.html.erb @@ -3,15 +3,15 @@ <% timestamp = asset.created_at %>