-if @admin 
  .dynamic
    Sous menu avec images
    

    
-if input.portlet.blockable_parent and input.portlet.blockable_parent.class.to_s == "Page" and input.portlet.blockable_parent.menu_item
  .sub_menu
    -input.portlet.blockable_parent.menu_item.children.where(:enabled => true, :visible => true).each do |menu_item|
      =link_to menu_item_path(:url => menu_item.url) do
        .sub_menu_item{:style => "background-image:url('#{menu_item.image_file.file.large.medium.small.url}')"}
          %h3=menu_item.name
    .clear