From c07df6a5a6c33bffeff674fbf44a446072fa789e Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 4 Aug 2019 20:35:20 +0100 Subject: [PATCH] Fix table column alignments --- .../order_mailer/_order_summary.html.haml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/views/spree/order_mailer/_order_summary.html.haml b/app/views/spree/order_mailer/_order_summary.html.haml index 7cb7e6b79c..d3bcabfa76 100644 --- a/app/views/spree/order_mailer/_order_summary.html.haml +++ b/app/views/spree/order_mailer/_order_summary.html.haml @@ -1,16 +1,16 @@ %table.order-summary{:width => "100%"} %thead %tr - %th{:align => "left"} + %th{align: "left"} %h4 = t :email_order_summary_item - %th{:align => "left"} + %th{align: "left"} %h4 = t :email_order_summary_sku - %th{:align => "right"} + %th{align: "right"} %h4 = t :email_order_summary_quantity - %th{:align => "right", :width => "25%"} + %th{align: "right", width: "25%"} %h4 = t :email_order_summary_price %tbody @@ -26,37 +26,37 @@ \- - else = item.variant.sku - %td{:align => "right"} + %td{align: "right"} - if @changes && @changes[item.id].present? %del.quantity_was= @changes[item.id] = item.quantity -# Report changes made to subscriptions - %td{:align => "right"} + %td{align: "right"} = item.display_amount_with_adjustments %tfoot %tr - %td{:align => "right", :colspan => "2"} + %td{align: "right", colspan: "3"} = t :email_order_summary_subtotal - %td{:align => "right"} + %td{align: "right"} = display_checkout_subtotal(@order) - checkout_adjustments_for(@order, exclude: [:line_item]).reject{ |a| a.amount == 0 }.reverse_each do |adjustment| %tr - %td{:align => "right", :colspan => "2"} + %td{align: "right", colspan: "3"} = "#{raw(adjustment.label)}:" - %td{:align => "right"} + %td{align: "right"} = adjustment.display_amount %tr - %td{:align => "right", :colspan => "2"} + %td{align: "right", colspan: "3"} %strong = t :email_order_summary_total - %td{:align => "right"} + %td{align: "right"} %strong= @order.display_total - if @order.total_tax > 0 %tr - %td{:align => "right", :colspan => "2"} + %td{align: "right", colspan: "3"} = t :email_order_summary_includes_tax - %td{:align => "right"} + %td{align: "right"} = display_checkout_tax_total(@order) %p