-style=""
-if block_content.style== 2
  -style += "background:#d8d8d8;"
-if block_content.nbr_columns == 1
  -block_content.blocks.each do |block|

    .container_12{:style => "padding:0px;"+style.to_s}
      .grid_12
        =render :partial => "admin/blocks/block", :locals => {:block => block}
      .clear
-else
  .container_12{:style => "padding:0px;"+style.to_s}
    -i = 0
    -block_content.blocks.each do |block|
      -i+=1
      .grid_6.col{:class => ("col_"+i.to_s)}

        =render :partial => "admin/blocks/block", :locals => {:block => block}
  
    .clear