mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Merge pull request #9237 from mgrigoriev8109/bug/update-tracking-font
Fix shipped email tracking information font size
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user