Created
July 23, 2012 19:45
-
-
Save juque/3165755 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * products.html | |
| * | |
| * | |
| */ | |
| <h2>{% navigation_path ' » ' %}</h2> | |
| {% paginate products by 20 %} | |
| <ul class="products clearfix"> | |
| {% loop paginated_list in 'product_item' %} | |
| </ul> | |
| {{ paginated_list | pagination }} | |
| {% endpaginate %} | |
| /* | |
| * product_item.html | |
| * | |
| */ | |
| {% if product_item.product_type != 'pescados' % } | |
| <li class="item-{{ product_item_counter }} clearfix"> | |
| <!-- shows a 'new' badge if product is tagged with 'new' --> | |
| {{ '<div class="new-product"></div>' | print_if_included: 'new', product_item.tag_list }} | |
| <div class="image-centerer"> | |
| <a href="{{ product_item.url }}" class="product-image"> | |
| <img src="{{ product_item.first_image.small }}" alt="{{ product_item.model }}" /> | |
| </a> | |
| </div> | |
| <h3 class="product-model"> | |
| <a href="{{ product_item.url }}" title="{{ product_item.model }}">{{ product_item.model | truncate:26 }}</a> | |
| </h3> | |
| {% unless product_item.price.zero %} | |
| <small class="product-price">{{ product_item.price.format }}</small> | |
| {% endunless %} | |
| {% if product_item.vendor != shop.name %} | |
| <span class="product-vendor">{{ product_item.vendor }}</span> | |
| {% endif %} | |
| </li> | |
| {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment