Skip to content

Instantly share code, notes, and snippets.

@tgautier
Created March 14, 2013 10:57
Show Gist options
  • Save tgautier/5160465 to your computer and use it in GitHub Desktop.
Save tgautier/5160465 to your computer and use it in GitHub Desktop.
- if taxonomy_products.products.present?
p class="l-title--large"
strong
=' taxonomy_products.title
= taxonomy_products.taxonomy_title
ul
- taxonomy_products.products.each_with_index do |product, index|
- present(product, Front::Catalog::ProductPresenter) do |presenter|
li class="m-vignette-product m-large-vignette-list #{'last' if (index + 1) % 3 == 0}"
= link_to(presenter.image_tag(:large), taxonomy_products.path_for_catalog_product(product))
p class="l-vignette-info--brand"
span class="l-vignette-info--brand-title"
= product.brand_title
span class="l-vignette-info--product-title"
= product.title
p class="l-vignette-info--price"
span class="l-vignette-info--current-price"
= "#{number_to_currency(product.variant_current_prices[0])}"
span class="l-vignette-info--base-price"
- if product.display_base_price
= render_orginal_price(product.base_price)
span class="clear"
= link_to taxonomy_products.catalog_link_title, taxonomy_products.path_for_catalog, class: 'm-link--full-entry'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment