Fix table column alignments

This commit is contained in:
Matt-Yorkley
2019-08-04 20:35:20 +01:00
parent a7d109833d
commit c07df6a5a6

View File

@@ -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