Merge pull request #9237 from mgrigoriev8109/bug/update-tracking-font

Fix shipped email tracking information font size
This commit is contained in:
Filipe
2022-06-02 18:37:27 +01:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@@ -15,11 +15,11 @@
%br
- if @shipment.tracking
%p
%p.lead
= t('.track_information', tracking: @shipment.tracking)
- if @shipment.tracking_url
%p
%p.lead
= t('.track_link', url: @shipment.tracking_url)
%p.lead

View File

@@ -5,7 +5,10 @@ require 'open_food_network/scope_variant_to_hub'
module Spree
class ShipmentPreview < ActionMailer::Preview
def shipped
ShipmentMailer.shipped_email(Shipment.last)
shipment =
Shipment.where.not(tracking: [nil, ""]).last ||
Shipment.last
ShipmentMailer.shipped_email(shipment)
end
end
end