Sha256: b391e766634e936cb64fb2d31e04f427677a6fcc839c334c85d468ce9941059a
Contents?: true
Size: 1.65 KB
Versions: 1
Compression:
Stored size: 1.65 KB
Contents
- include_download_column = order.purchased? && order.order_items.any? { |order_item| order_item.purchased_download_url.present? rescue false } .effective-order %table.table %thead %tr %th.quantity Qty %th.item= order.order_items.length > 1 ? 'Items' : 'Item' - if include_download_column %th.download Download %th.price Price %tbody - order.order_items.each do |item| %tr %td.quantity= item.quantity %td.item = item.title.html_safe - if order.new_record? && item.purchasable.kind_of?(Effective::Subscription) = render :partial => 'effective/orders/stripe/subscription_fields', :locals => {:form => form, :subscription => item.purchasable } - if include_download_column %td.download - if item.purchased? && (item.purchased_download_url rescue nil).present? = link_to 'download', item.purchased_download_url - else = '-' %td.price= price_to_currency(item.price) %tfoot - if order.tax > 0 %tr %th.quantity - if include_download_column %th.download %th.subtotal Subtotal %td.price.subtotal-price= price_to_currency(order.subtotal) %tr %th.quantity - if include_download_column %th.download %th.tax Tax %td.price.tax-price= price_to_currency(order.tax) %tr %th.quantity - if include_download_column %th.download %th.total Total Due %td.price.total-price= price_to_currency(order.total)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
effective_orders-1.6.6 | app/views/effective/orders/_order_items.html.haml |