Skip to content

Instantly share code, notes, and snippets.

@braidn
Created February 10, 2014 18:32
Show Gist options
  • Save braidn/8921522 to your computer and use it in GitHub Desktop.
Save braidn/8921522 to your computer and use it in GitHub Desktop.
/ The values should loop from 1 to whatever
/ Categories are pulled from the DB
.section.container.home-curators
%h3.section-title
\Popular curators:
.home-selecter
%select.not_custom
%option{:value => "1"}
\FASHION & STYLE
%option{:value => "2"}
\TECHNOLOGY & TOYS
%option{:value => "3"}
\CULTURE & STORIES
%option{:value => "4"}
\TRAVEL & ADVENTURE
%option{:value => "5"}
\LIFESTYLE & BEAUTY
%option{:value => "6"}
\FOOD & HOME
%option{:value => "7"}
\ART & DESIGN
.curators-list
%ul
- product_listing.each_with_index do |products, index|
.row{ class: ("hidden" unless index == 0), data: { value: index+1 } }
- products.each_with_index do |product, second_dex|
%li
%a{:href => "#{spree.product_path(product)}"}
/ full_image(product, :itemprop => "image")
/ required for using the non-overlay banners
= image_tag "http://quarterly-production.s3.amazonaws.com/optimizely/banners/#{product.subscription_plan.contributor.name.gsub(/\s+/, "").downcase}.png"
%span.title
=product.name
%span.subtitle
=product.subscription_plan.contributor.title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment