public
Created

refactored

  • Download Gist
template.html.haml
Haml
1 2 3 4 5 6 7 8 9
- cc_or_check = ["Check", "Credit Card"][[@bulk_order.check, @bulk_order.credit_card].index("1")]
%h3{ :style => "font-size: 14px; color: #848687; font-weight: bold;" } Check or CC Used:
%p{:style => "border-bottom:1px #CCC dashed;margin-bottom:10px;padding:5px 0;"}= cc_or_check
- cc_type = ["Discover", "American Express", "Visa", "Mastercard"][[@bulk_order.discover, @bulk_order.amex, @bulk_order.visa, @bulk_order.mc].index("1")]
%h3{ :style => "font-size: 14px; color: #848687; font-weight: bold;" } Payment Option Chosen:
%ul
%li{ :style => "font-size: 13px; color: #848687;" }= cc_type
%li{ :style => "font-size: 13px; color: #848687;" }= "Last Four Digits of Credit Card: #{@bulk_order.four_digits}"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.