-content_for :body do

	.breadcrumb

		=link_to "Accueil", "/"
		
		-@menu_item.ancestors.reverse.each do |menu_item|
			>
			=menu_item_link(menu_item)
		
	

-content_for :body do
	=render @menu_item.menu_content.blocks[0]


-content_for :sidebar do

	
		
	#menu
		-if @menu_item.parent_id
			-if @menu_item.ancestors.reverse[0]
				-first_level_menu = @menu_item.ancestors.reverse[0]

		-else

			-first_level_menu = @menu_item

		-if first_level_menu.children.size > 0

			#menu_left

			
				-first_level_menu.children.where(:enabled => true).order(:position).each do |menu_item|
					.link
						=menu_item_link(menu_item)
						-if menu_item.children.size > 0

							.sous_menu
								-menu_item.children.where(:enabled => true).order(:position).each do |menu_item|
									.link=menu_item_link(menu_item)


-content_for :sidebar do
	=render @menu_item.menu_content.blocks[1]

	



