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