Created
June 2, 2015 23:41
-
-
Save alkema/4594ce53a2e7e85802d7 to your computer and use it in GitHub Desktop.
This file contains 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
- 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