Skip to content

Instantly share code, notes, and snippets.

@juque
Created March 27, 2012 04:37
Show Gist options
  • Select an option

  • Save juque/2212580 to your computer and use it in GitHub Desktop.

Select an option

Save juque/2212580 to your computer and use it in GitHub Desktop.
<h2>{% navigation_path ' &raquo; ' %}</h2>
{% unless product_type %}
<!-- Estamos en /collections/destacados. Listar tipos con link a /collections/destacados/types/un-tipo -->
{% for type in collection.product_types %}
<h3 class="{{ type }}">
<a href="{{ collection | typed_collection_path: type }}">{{ type.name }}</a>
</h3>
{% endfor %}
{% else %}
<!-- Estamos en /collections/destacados/types/un-tipo. Listar productos para este tipo -->
{% paginate products by 20 %}
<ul class="products clearfix">
{% loop paginated_list in 'product_item' %}
</ul>
{{ paginated_list | pagination }}
{% endpaginate %}
{% endunless %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment