Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fixed: remove unnecessary `raw` usage in `spree_emails` (#13874)
Damian Legawiec38f3fcca3179
diff --git a/spree/admin/app/views/spree/admin/dashboard/show.html.erb b/spree/admin/app/views/spree/admin/dashboard/show.html.erbindex d6c6601dc9..d49f3de47e 100644--- a/spree/admin/app/views/spree/admin/dashboard/show.html.erb+++ b/spree/admin/app/views/spree/admin/dashboard/show.html.erb@@ -4,7 +4,7 @@<%= Spree.t('admin.dashboard.hi') %> <%= try_spree_current_user.first_name %>!</h2><p class="mb-4">- <%= Spree.t('admin.dashboard.whats_happening_on', store_name: current_store.name).html_safe %>+ <%= Spree.t('admin.dashboard.whats_happening_on_html', store_name: current_store.name) %></p></div></div>diff --git a/spree/admin/config/locales/en.yml b/spree/admin/config/locales/en.ymlindex 34d13f0baf..0208812b7a 100644--- a/spree/admin/config/locales/en.yml+++ b/spree/admin/config/locales/en.yml@@ -99,7 +99,7 @@ en:hi: Hitop_products: Top productsview_report: View report- whats_happening_on: Here's what's happening on <strong>%{store_name}</strong> today.+ whats_happening_on_html: Here's what's happening on <strong>%{store_name}</strong> today.digital_shipment_fulfillment_note: This shipment will be marked as fulfilled once the user downloads the digital productdisplay_on_options:back_end: Only on admin paneldiff --git a/spree/core/app/views/spree/shared/_mailer_line_item.html.erb b/spree/core/app/views/spree/shared/_mailer_line_item.html.erbindex 74795247d6..a31accf8a3 100644--- a/spree/core/app/views/spree/shared/_mailer_line_item.html.erb+++ b/spree/core/app/views/spree/shared/_mailer_line_item.html.erb@@ -1,9 +1,9 @@<tr><td class="six sub-columns"><strong>- <%= link_to raw(line_item.variant.product.name), spree_storefront_resource_url(line_item.variant.product) %>+ <%= link_to line_item.variant.product.name, spree_storefront_resource_url(line_item.variant.product) %></strong>- <%= raw(line_item.variant.options_text) -%>+ <%= line_item.variant.options_text -%>(<%= line_item.variant.sku %>)</td><td class="six sub-columns last right">diff --git a/spree/emails/app/views/spree/reimbursement_mailer/reimbursement_email.html.erb b/spree/emails/app/views/spree/reimbursement_mailer/reimbursement_email.html.erbindex 5573738e0a..2506e0cb25 100644--- a/spree/emails/app/views/spree/reimbursement_mailer/reimbursement_email.html.erb+++ b/spree/emails/app/views/spree/reimbursement_mailer/reimbursement_email.html.erb@@ -24,11 +24,11 @@<td class="purchase_item"><strong><span class="f-fallback">- <%= link_to raw(return_item.variant.name), spree_storefront_resource_url(return_item.variant.product) %>+ <%= link_to return_item.variant.name, spree_storefront_resource_url(return_item.variant.product) %></span></strong><p class="purchase_item--additional">- <%= "(#{raw(return_item.exchange_variant.options_text)})" if return_item.exchange_variant.options_text.present? -%>+ <%= "(#{return_item.exchange_variant.options_text})" if return_item.exchange_variant.options_text.present? -%></p></td></tr>diff --git a/spree/emails/app/views/spree/reimbursement_mailer/reimbursement_email.text.erb b/spree/emails/app/views/spree/reimbursement_mailer/reimbursement_email.text.erbindex 2e3508a28a..499227576c 100644--- a/spree/emails/app/views/spree/reimbursement_mailer/reimbursement_email.text.erb+++ b/spree/emails/app/views/spree/reimbursement_mailer/reimbursement_email.text.erb@@ -12,7 +12,7 @@<%= Spree.t('reimbursement_mailer.reimbursement_email.exchange_summary') %>============================================================<% @reimbursement.return_items.exchange_requested.each do |return_item| %>-<%= return_item.variant.sku %> <%= raw(return_item.variant.product.name) %> <%= "(#{raw(return_item.variant.options_text)})" if return_item.variant.options_text.present? -%> -> <%= return_item.exchange_variant.sku %> <%= raw(return_item.exchange_variant.product.name) if return_item.exchange_variant.options_text.present? %> <%= "(#{raw(return_item.exchange_variant.options_text)})" -%>+<%= return_item.variant.sku %> <%= return_item.variant.product.name %> <%= "(#{return_item.variant.options_text})" if return_item.variant.options_text.present? -%> -> <%= return_item.exchange_variant.sku %> <%= return_item.exchange_variant.product.name if return_item.exchange_variant.options_text.present? %> <%= "(#{return_item.exchange_variant.options_text})" -%><% end %>diff --git a/spree/emails/app/views/spree/shared/_purchased_items_table.text.erb b/spree/emails/app/views/spree/shared/_purchased_items_table.text.erbindex 7d38c07382..16399b0513 100644--- a/spree/emails/app/views/spree/shared/_purchased_items_table.text.erb+++ b/spree/emails/app/views/spree/shared/_purchased_items_table.text.erb@@ -1,5 +1,5 @@<% line_items.each do |item| %>- <%= item.variant.sku %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (<%=item.quantity%>) <%= Spree.t('at_symbol') %> <%= item.single_money %> = <%= item.display_amount %>+ <%= item.variant.sku %> <%= item.variant.product.name %> <%= item.variant.options_text -%> (<%=item.quantity%>) <%= Spree.t('at_symbol') %> <%= item.single_money %> = <%= item.display_amount %><% end %>============================================================<%= Spree.t('order_mailer.subtotal') %> <%= order.display_item_total %>diff --git a/spree/emails/app/views/spree/shared/purchased_items_table/_adjustment.html.erb b/spree/emails/app/views/spree/shared/purchased_items_table/_adjustment.html.erbindex 409d228ca9..e4e1663a48 100644--- a/spree/emails/app/views/spree/shared/purchased_items_table/_adjustment.html.erb+++ b/spree/emails/app/views/spree/shared/purchased_items_table/_adjustment.html.erb@@ -2,7 +2,7 @@<td></td><td><p class="f-fallback purchase_total purchase_total--label">- <%= raw(adjustment.label) %>:+ <%= adjustment.label %>:</p></td><td class="purchase_total-col">diff --git a/spree/emails/app/views/spree/shared/purchased_items_table/_line_item.html.erb b/spree/emails/app/views/spree/shared/purchased_items_table/_line_item.html.erbindex 00495b048a..c0514add6b 100644--- a/spree/emails/app/views/spree/shared/purchased_items_table/_line_item.html.erb+++ b/spree/emails/app/views/spree/shared/purchased_items_table/_line_item.html.erb@@ -10,7 +10,7 @@<td class="purchase_item"><strong><span class="f-fallback">- <%= link_to raw(line_item.name), spree_storefront_resource_url(line_item.product) %>+ <%= link_to line_item.name, spree_storefront_resource_url(line_item.product) %></span></strong><p class="purchase_item--additional"><%= line_item.variant.options_text -%></p>