-if menu_item_valid_to_show(menu_item, @lang, Time.now)

  -img_url = menu_item.image_file.file.square.url if menu_item.image_file

  =link_to menu_item_url(menu_item), :class => "article_search" do
  
    .image
      =image_tag img_url
  
  
    .description
      -fil = []
      
      %h3 Page
  
      %h2= menu_item.menu_content.lang_pages.find_by_lang_site_id(@lang.id).title
    
      %p
        -if menu_item.ancestors

          -for mi in menu_item.ancestors.reverse 
            -fil << mi.menu_item_langs.find_by_lang_site_id(@lang.id).name
            

        =fil.join("> ")
        
    .clear

  -if menu_item.image_file and menu_item.image_file.photograph

    -@page_images_credits << menu_item.image_file.photograph
  