Skip to content

Instantly share code, notes, and snippets.

@willawill
Created November 15, 2012 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willawill/4076771 to your computer and use it in GitHub Desktop.
Save willawill/4076771 to your computer and use it in GitHub Desktop.
Haml indentation.
#asks
%h2= "ASKS"
-@campaign.asks.each do |ask|
=haml :ask, locals: {ask: ask, type: ask.class.typesym}
-if @campaign.asks.select{|n| n.triggered_ask && n.triggered_ask == ask}.empty?
%form{action: "/campaign/#{@campaign.id}/broadcast}", method: "post"}
%button{type: 'submit'} Launch the Ask
%form{action: "/campaign/#{@campaign.id}/add_new_ask", method: 'get'}
%button Add new ask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment