Sha256: 6525322a9125467ecaab1efc17ee829ab5e78f63e9a39ed30005c3c436c099dd

Contents?: true

Size: 1000 Bytes

Versions: 7

Compression:

Stored size: 1000 Bytes

Contents

{% if cart.items != blank %}

<form method="post" action="/cart">
  <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">&times;</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 &rarr;</a></p>
</div>

{% endif %}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dugway-0.5.7 lib/dugway/cli/templates/source/cart.html
dugway-0.5.6 lib/dugway/cli/templates/source/cart.html
dugway-0.5.4 lib/dugway/cli/templates/source/cart.html
dugway-0.5.3 lib/dugway/cli/templates/source/cart.html
dugway-0.5.2 lib/dugway/cli/templates/source/cart.html
dugway-0.5.1 lib/dugway/cli/templates/source/cart.html
dugway-0.5.0 lib/dugway/cli/templates/source/cart.html