
-if input.nbr_columns == 1 and admin == "dd"
	-input.blocks.each do |block|
		.block
			=render :partial => "admin/blocks/block", :locals => {:block => block, :sortable => false}
	.clear
		
-else
	=raw '</div>' if !admin

	- css_class = ""
	- css_class = "fond-gris" if input.style == 2
	- css_class = "fond-bleu" if input.style == 3
	
	=raw "<div class='#{css_class}'>" if !admin
	

	.row
		-for i in 1..input.nbr_columns.to_i
			%div{:class => "col-xs-"+eval("input.row#{i}").to_s}
				-if admin
					=render :partial => "admin/blocks/block", :locals => {:admin => false,:block => input.blocks[i-1], :sortable => false}
				-else
					=render :partial => "public/blocks/block", :locals => {:admin => false, :block => input.blocks[i-1], :sortable => false}


	=raw "</div>" if !admin
	=raw '<div class="row">' if !admin
	
	