%table{:style => "min-width:100%"} %tr %td -if @parrain != current_customer =render :partial => "public/customers/customer_binary", :object => current_customer, :locals => {:inline_b => true} %center="..." -ancestors = [] -ancest = @parrain.binary_parent -while ancest and ancest != current_customer - ancestors << ancest -ancest = ancest.binary_parent -ancestors.reverse.each do |ancest| =render :partial => "public/customers/customer_binary", :object => ancest, :locals => {:inline_b => true} %center="..." =render :partial => "public/customers/customer_binary", :object => @parrain, :locals => {:inline_b => true} -if @i_table != @nbr_levels .binary_line .line =render :partial => "public/customers/binary_table", :locals => {:i_table => 0, :liste => ""}