From 58872a7017f5776893c5344e1bfca2bca8ef7704 Mon Sep 17 00:00:00 2001 From: wandji20 Date: Tue, 13 Aug 2024 18:23:18 +0100 Subject: [PATCH] Include mail stylsheet tag in invoice pdf files and mailer layout [OFN-12214] --- app/views/layouts/mailer.html.haml | 2 +- app/views/spree/admin/orders/invoice.html.haml | 2 ++ app/views/spree/admin/orders/invoice2.html.haml | 2 ++ app/views/spree/admin/orders/invoice4.html.haml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/mailer.html.haml b/app/views/layouts/mailer.html.haml index 0a70687f14..12c654b3d1 100644 --- a/app/views/layouts/mailer.html.haml +++ b/app/views/layouts/mailer.html.haml @@ -5,7 +5,7 @@ %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/ %title = Spree::Config[:site_name] - = stylesheet_pack_tag 'mail' + = stylesheet_link_tag 'mail' %body{:bgcolor => "#FFFFFF" } - unless @hide_ofn_navigation %table.head-wrap{:bgcolor => "#f2f2f2"} diff --git a/app/views/spree/admin/orders/invoice.html.haml b/app/views/spree/admin/orders/invoice.html.haml index 9f161fcbbf..a72e7c1fff 100644 --- a/app/views/spree/admin/orders/invoice.html.haml +++ b/app/views/spree/admin/orders/invoice.html.haml @@ -1,3 +1,5 @@ += wicked_pdf_stylesheet_link_tag "mail" + %table{:width => "100%"} %tbody %tr{ valign: "top" } diff --git a/app/views/spree/admin/orders/invoice2.html.haml b/app/views/spree/admin/orders/invoice2.html.haml index 5ae2b01a8d..935e370d7a 100644 --- a/app/views/spree/admin/orders/invoice2.html.haml +++ b/app/views/spree/admin/orders/invoice2.html.haml @@ -1,3 +1,5 @@ += wicked_pdf_stylesheet_link_tag "mail" + %table{:width => "100%"} %tbody %tr{ valign: "top" } diff --git a/app/views/spree/admin/orders/invoice4.html.haml b/app/views/spree/admin/orders/invoice4.html.haml index 38bacf8d48..f05a463b88 100644 --- a/app/views/spree/admin/orders/invoice4.html.haml +++ b/app/views/spree/admin/orders/invoice4.html.haml @@ -1,3 +1,5 @@ += wicked_pdf_stylesheet_link_tag "mail" + %table{:width => "100%"} %tbody %tr{ valign: "top" }