Skip to content

Instantly share code, notes, and snippets.

@ziyan-junaideen
Created December 29, 2014 13:44
Show Gist options
  • Save ziyan-junaideen/47c2bb28ff889be9d960 to your computer and use it in GitHub Desktop.
Save ziyan-junaideen/47c2bb28ff889be9d960 to your computer and use it in GitHub Desktop.
///! List of columned items
div[data-trigger="infinite-scroll"]
#columns.clearfix[data-columns]
- items_feed.each do |item|
.product-item.panel.panel-primary.infinite-scroll-item.invisible[data-product-item data-id="#{item.uuid}"]
.panel-body.product-image-container
img.img-responsive.product-image src="#{tartarus_product_thumb(item)}"
.overlay
== show_product_wish_link item, 'Wish'
== show_product_buy_link item, 'Buy'
.panel-footer.product-info-container.clearfix
a.similar href="#" Search similar item
strong = item.brand.name
.row
.col-xs-8.product-name[data-trigger="ellipsis"]
== product_more_info_link(item, item.name)
.col-xs-4
.prices.clearfix
span.special
| #{item.price.to_i} #{item.currency}
a.share.pull-right href="#"
i.fa.fa-share
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment