Sha256: 6e10eaa97f8e5cbb6c0bc6766ab9d9447eba9a19a46250933a98d6fdb7d38b78
Contents?: true
Size: 1017 Bytes
Versions: 47
Compression:
Stored size: 1017 Bytes
Contents
{% if cart.items != blank %} <form method="post" action="/cart"> <ul class="unstyled"> {% for item in cart.items %} <li> <a href="{{ item.product.url }}"> <img src="{{ item.product.image | product_image_url size:"thumb" }}"> </a> <h2> <a href="{{ item.product.url }}"> {{ item.product.name }} {% unless item.product.has_default_option %} <em>{{ item.option.name }}</em> {% endunless %} </a> </h2> <p> {{ item | item_quantity_input }} {{ item.price | money_with_sign }} <a href="#" class="remove">×</a> </p> </li> {% endfor %} </ul> <p> <strong>Subtotal</strong> <span>{{ cart.subtotal | money_with_sign }}</span> </p> <button type="submit" name="checkout" title="Checkout">Checkout</button> </form> {% else %} <div> <p><strong>Your cart is empty!</strong> Sounds like a good time to <a href="/">start shopping →</a></p> </div> {% endif %}
Version data entries
47 entries across 47 versions & 1 rubygems