Skip to content

Instantly share code, notes, and snippets.

@alkema
Created June 2, 2015 23:41
Show Gist options
  • Save alkema/4594ce53a2e7e85802d7 to your computer and use it in GitHub Desktop.
Save alkema/4594ce53a2e7e85802d7 to your computer and use it in GitHub Desktop.
- cache [@current_market, MarketPod.get_in_shape.name, get_in_shape_pods.max_by(&:updated_at)] do
.module-header
%h3
Get in Shape
%a.button.button-see-all-white{href: products_path}
See All
%ul.clearfix
- if get_in_shape_pods.present?
- pod = get_in_shape_pods[0]
- cache [MarketPod.get_in_shape.name, "small-pod", pod] do
%li.collection-item.gear.small-collection-item
= render pod.poddable.decorated_for(:homepage)
- if get_in_shape_pods.length > 1
- pod = get_in_shape_pods[1]
- cache [MarketPod.get_in_shape.name, "big-pod", pod] do
%li.collection-item.gear.big-collection-item
= render pod.poddable.decorated_for(:homepage, :big)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment