OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Load image via Base64 string instead of direct attachment
Henriette Dargef364c60b6294
diff --git a/app/helpers/mail_notification_helper.rb b/app/helpers/mail_notification_helper.rbindex b32bf04eae4..cab4f99241b 100644--- a/app/helpers/mail_notification_helper.rb+++ b/app/helpers/mail_notification_helper.rb@@ -32,8 +32,10 @@ module MailNotificationHelperinclude ::ColorsHelperdef email_image_tag(image, **options)- attachments[image] = File.read(Rails.root.join("app/assets/images/#{image}"))- image_tag attachments[image].url, **options+ image_string = Rails.application.assets[image].to_s+ base64_string = Base64.strict_encode64(image_string)++ image_tag "data:image/svg+xml;base64," + base64_string, **optionsenddef unique_reasons_of_notifications(notifications)