Sha256: 068bf67381380719bf1ca8dc68cd856098336282d8d05a0c644ec5d9e81b388e
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
-content_for :checkout do %ul.nav.nav-tabs %li{class: ('active' if current_page?('/shopping_cart/checkout'))} = link_to(t('shopping_cart.address'), '/shopping_cart/checkout') - ShoppingCart.order_steps.try(:each) do |step| - step = step.to_s %li{class: ('active' if current_page?('/shopping_cart/checkout/' + step))} = link_to(t(step), '/shopping_cart/checkout/' + step) %li{class: ('active' if current_page?('/shopping_cart/checkout/complete'))} = link_to(t('shopping_cart.complete'), '/shopping_cart/checkout/complete') .row{style: 'padding: 15px'} - if current_page?('/shopping_cart/checkout/complete') .col-lg-12 =yield - else .col-lg-7 =yield .col-lg-4.col-lg-offset-1 %h3 #{t('shopping_cart.summary')} - subtotal = @current_order.subtotal_price %strong #{t('shopping_cart.subtotal')}: #{subtotal} #{t('shopping_cart.currency')} - if @current_order.discount %br/ %strong #{t('shopping_cart.discount')}: #{calculate_discount(@current_order)} #{t('shopping_cart.currency')} - if @current_order.shipping %br/ %strong #{t('shopping_cart.delivery')}: #{@current_order.shipping_price} #{t('shopping_cart.currency')} %h4 #{t('shopping_cart.total')}: #{@current_order.total_price} #{t('shopping_cart.currency')} =render template: 'layouts/shopping_cart/application'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopping_cart-0.1.0 | app/views/layouts/shopping_cart/checkout.html.haml |