Skip to content

Instantly share code, notes, and snippets.

@bourroush
Created March 28, 2016 15:17
Show Gist options
  • Save bourroush/4a1361dbc9f872045277 to your computer and use it in GitHub Desktop.
Save bourroush/4a1361dbc9f872045277 to your computer and use it in GitHub Desktop.
#L43-48
.col-sm-5.col-sm-offset-1
a ng-href="/#!/products/{{resume.slug}}"
img.mtm.mbxxs ng-src="{{resume.thumbnail}}"
.clearfix ng-if="resume.name != ''"
.c-boldital.c-trail--alt.fl {{resume.name}}
.c-boldital.fr ng-if="resume.price != false" ${{resume.price | number: 0}}
# L90-92
# Desktop
$scope.openDesktopMenu = (item) ->
$scope.resetResume(item)
# L119-129
$scope.resetResume = (item) ->
if item is "skincare"
thumbnail = "<%= path_to_asset('build/placeholder/menu/menu-skincare.jpg') %>"
else if item is "makeup"
thumbnail = "<%= path_to_asset('build/placeholder/menu/menu-makeup.jpg') %>"
$scope.resume =
name: ''
thumbnail: thumbnail
excerpt: ''
price: false
slug: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment