Sha256: 0a6a7b933619c3c279dfec766a6241717bb5b1153918362b6ff3d037e2c0ffef
Contents?: true
Size: 1.23 KB
Versions: 54
Compression:
Stored size: 1.23 KB
Contents
<div> {% paginate products from products.all by 20 %} {% if products != blank %} <ul> {% for product in products %} <li id="product_{{ product.id }}"> <a href="{{ product.url }}"> <img alt="Image of {{ product.name | escape }}" src="{{ product.image | product_image_url size: theme.product_list_size }}" /> <div> <div> <span>{{ product.name }}</span> <span>{{ product.default_price | money_with_sign }}{% case product.status %}{% when 'sold-out' %} / Sold Out{% when 'coming-soon' %} / Coming Soon{% when 'active' %}{% if product.on_sale %} / On Sale{% endif %}{% endcase %}</span> </div> </div> </a> </li> {% endfor %} </ul> <div class="pagination" id="pagination"> {% if paginate.previous %} {% if paginate.previous.is_link %} <a href="{{ paginate.previous.url }}" id="previous" class="circle">←<em>Previous</em></a> {% endif %} {% endif %} {% if paginate.next %} {% if paginate.next.is_link %} <a href="{{ paginate.next.url }}" id="next" class="circle">→<em>Next</em></a> {% endif %} {% endif %} </div> {% else %} <p><span>No products found.</span></p> {% endif %} {% endpaginate %} </div>
Version data entries
54 entries across 54 versions & 1 rubygems