Skip to content

Instantly share code, notes, and snippets.

@jamescway
Created April 27, 2012 06:33
Show Gist options
  • Save jamescway/2506611 to your computer and use it in GitHub Desktop.
Save jamescway/2506611 to your computer and use it in GitHub Desktop.
%a.btn-sec.offer-button{:href => "#", :class => [offers_enabled_class, (is_linked && "linked" || "unlinked")], 'attr-deal_id' => deal.id, 'attr-logged_in' => "#{logged_in?}", 'attr-title' => deal.title, 'attr-merchant' => deal.merchant.name, 'attr-expires' => deal.end_at.strftime('%b %-d, %Y'), 'attr-image_url' => ugasset_url(deal.image)}
= (is_linked ? 'Unlink from Card' : 'Link to Card')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment