Sha256: 45359fd659fe4438b20df2b926f16eaa89ec442541bb034c7af46138fa004fa1
Contents?: true
Size: 732 Bytes
Versions: 55
Compression:
Stored size: 732 Bytes
Contents
!!! %html %head %meta{:content => 'text/html; charset=UTF-8', 'http-equiv' => "Content-Type"} %body %p= @subject %table.table %thead %tr %th Item %th Price %tbody - @order_items.each do |item| %tr %td - if item.quantity > 1 = "#{item.quantity}x " = item.title %td= price_to_currency(item.subtotal) %tfoot %tr %th Subtotal %td= price_to_currency(@order_items.sum(&:subtotal)) %tr %th Tax %td= price_to_currency(@order_items.sum(&:tax)) %tr %th Total %td= price_to_currency(@order_items.sum(&:total))
Version data entries
55 entries across 55 versions & 1 rubygems