Sha256: 1a4db02125a7d1803fa0711f2e2d339e5874916832d19301a01a39d92bfd60e6
Contents?: true
Size: 1.13 KB
Versions: 47
Compression:
Stored size: 1.13 KB
Contents
<div> {% if cart.items != blank %} <form method="post" action="/cart"> <h1>Cart</h1> <ul> {% 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 %} <li> <label>Total:</label> <span>{{ cart.total | money_with_sign }}</span> </li> <li> <button type="submit">Update</button> </li> <li> <button type="submit" name="checkout">Checkout</button> </li> </ul> </form> {% else %} <div> <h1>Your cart is empty</h1> <p>Sounds like a good time to <a href="/">start shopping</a>.</p> </div> {% endif %} </div>
Version data entries
47 entries across 47 versions & 1 rubygems