<%= form_at(rebuild_url_for(build), {}, :submit => "Rebuild") %> <% if build.status == Juici::BuildStatus::START %> <%= form_at(kill_url_for(build), {:project => build[:parent], :id => build[:_id]}, :submit => "Kill!") %> <% elsif build.status == Juici::BuildStatus::WAIT %> <%= form_at(cancel_url_for(build), {:project => build[:parent], :id => build[:_id]}, :submit => "Cancel") %> <% end %> Edit