Sha256: cdefa391ea4114c35ae0a78d174cd419d7c3efd99844b7635940fde2ba2528cf
Contents?: true
Size: 1.43 KB
Versions: 599
Compression:
Stored size: 1.43 KB
Contents
module Caboose module CheckoutHelper def checkout_nav(i) str = "" str << "<div id='checkout-nav'>" str << " <ul>" str << " <li class='odd' id='checkout_nav1'><a href='#{i <= 1 ? '#' : '/checkout' }' class='#{i == 1 ? 'current' : (i < 1 ? 'not_done' : 'done')}'><span>User Account </span></a></li>" str << " <li class='even' id='checkout_nav2'><a href='#{i <= 2 ? '#' : '/checkout/addresses' }' class='#{i == 2 ? 'current' : (i < 2 ? 'not_done' : 'done')}'><span>Addresses </span></a></li>" str << " <li class='odd' id='checkout_nav3'><a href='#{i <= 3 ? '#' : '/checkout/shipping' }' class='#{i == 3 ? 'current' : (i < 3 ? 'not_done' : 'done')}'><span>Shipping </span></a></li>" str << " <li class='even' id='checkout_nav4'><a href='#{i <= 4 ? '#' : '/checkout/gift-cards' }' class='#{i == 4 ? 'current' : (i < 4 ? 'not_done' : 'done')}'><span>Gift Cards </span></a></li>" str << " <li class='even' id='checkout_nav5'><a href='#{i <= 4 ? '#' : '/checkout/payment' }' class='#{i == 4 ? 'current' : (i < 4 ? 'not_done' : 'done')}'><span>Payment </span></a></li>" str << " <li class='odd' id='checkout_nav6'><a href='#{i <= 5 ? '#' : '/checkout/confirm' }' class='#{i == 5 ? 'current' : (i < 5 ? 'not_done' : 'done')}'><span>Confirm </span></a></li>" str << " </ul>" str << "</div>" return str end end end
Version data entries
599 entries across 599 versions & 1 rubygems