Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
- 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"][[,,,].index("1")]
%h3{ :style => "font-size: 14px; color: #848687; font-weight: bold;" } Payment Option Chosen:
%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}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment