From 57dc10888c852c8170c6a0e51839ff10fe85151f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 30 Nov 2021 17:02:42 +0100 Subject: [PATCH] Improve shipped email design - Use default class for header, content - Use monospace font for the list of the items - Add line breaks for the list of the items --- .../shipment_mailer/shipped_email.html.haml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/app/views/spree/shipment_mailer/shipped_email.html.haml b/app/views/spree/shipment_mailer/shipped_email.html.haml index 39a174d388..cd8a9eb15d 100644 --- a/app/views/spree/shipment_mailer/shipped_email.html.haml +++ b/app/views/spree/shipment_mailer/shipped_email.html.haml @@ -1,22 +1,18 @@ -%p +%h3 = t('.dear_customer') -%p +%p.lead = t('.instructions', distributor: @shipment.order.distributor.name) %p - = "============================================================" - %br - = t('.shipment_summary') - %br - = "============================================================" + %strong + = t('.shipment_summary') -%p +%p{ style: "font-family: monospace, serif;" } - @shipment.manifest.each do |item| = item.variant.sku = item.variant.product.name = item.variant.options_text - %br - = "============================================================" + %br - if @shipment.tracking %p @@ -26,5 +22,5 @@ %p = t('.track_link', url: @shipment.tracking_url) -%p +%p.lead = t('.thanks')