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

Version Path
caboose-cms-0.9.229 app/helpers/caboose/checkout_helper.rb
caboose-cms-1.0.2 app/helpers/caboose/checkout_helper.rb
caboose-cms-1.0.1 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.228 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.227 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.226 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.225 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.224 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.223 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.222 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.221 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.220 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.219 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.218 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.217 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.216 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.215 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.214 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.213 app/helpers/caboose/checkout_helper.rb
caboose-cms-0.9.212 app/helpers/caboose/checkout_helper.rb