public
Created

Haml indentation.

  • Download Gist
gistfile1.haml
Haml
1 2 3 4 5 6 7 8 9 10
#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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.