Sha256: eeae5387591f0556c5fd7ef22b14de7743addc085380dc73600f09963283fc5f

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

{% paginate collection.products by 12 %}{% if collection.products.size == 0 %}
	<strong>No products found in this collection.</strong>{% else %}
	<h1>{{ collection.title }}</h1>
	{{ collection.description }}
	<table id="gallery">
	{% tablerow product in collection.products cols: 3 %}
		<div class="gallery-image">
			<a href="{{ product.url | within: collection }}" title="{{ product.title | escape }} &mdash; {{ product.description | strip_html | truncate: 50 | escape }}"><img src="{{ product.images.first | product_img_url: 'small' }}" alt="{{ product.title | escape }}" /></a>
		</div>
		<div class="gallery-info">
			<a href="{{ product.url | within: collection }}">{{ product.title | truncate: 30 }}</a><br />
			<small>{{ product.price | money }}{% if product.compare_at_price_max > product.price %} <del>{{ product.compare_at_price_max | money }}</del>{% endif %}</small>
		</div>
	{% endtablerow %}
	</table>{% if paginate.pages > 1 %}
	<div id="paginate">
		{{ paginate | default_pagination }}
	</div>{% endif %}{% endif %}
{% endpaginate %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
liquor-0.1.1 performance/tests/vogue/collection.liquid
liquor-0.1.0 performance/tests/vogue/collection.liquid