!!!

%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"}
  %head
    %title=@title.to_s+" "
    
    
    %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
    %meta{ :"name" => "Description", :content => @description }
    %meta{ :"name" => "Keywords", :content => @keywords }  
    

    = javascript_include_tag "public"
    
    = csrf_meta_tag 
    
    = stylesheet_link_tag 'public' 
    = stylesheet_link_tag '/fonts/winterthurcondensed/stylesheet.css' 

    
    =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false&region=FR"
    
  %body{:class => ("page" if @menu_item and @menu_item.slug != "index")}

  
    -if flash[:error] or flash[:notice] or flash[:alert] 
      .flash
      
        =flash[:error]
        =flash[:notice]
        =flash[:alert]

    
    
  
    .top
      
      #blur
      .center{:style => "position:relative;"}
        =link_to image_tag("/logo.png", :id => "logo"), "/"
      
      #menu
        .content
          %ul
            -MenuItem.where(:parent_id => nil, :enabled => true, :visible => true, :menu_id => Menu.find_by_slug("principal").id).order(:position).each do |menu_item|
              -description = ""
              -description = menu_item.menu_content.description if menu_item.menu_content and menu_item.menu_content_type == "Page"
              %li
                =link_to sanitize("#{menu_item.name}"),menu_item_path(:url => menu_item.url), :class => menu_item.slug.to_s+"_menu"+(" active" if @menu_item and (@menu_item == menu_item or @menu_item.ancestors.include?(menu_item))).to_s
            
            
                -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  
                  %ul
                    -first_level_menu.children.where(:enabled => true, :visible => true).order(:position).each do |menu_item|
  
                      %li
                        =menu_item_link(menu_item)
          
            
            
      
      
        =link_to image_tag("/logo-min.png", :id => "logo-min"), "/"
        
      .clear
    
    #main{:class => (@menu_item.slug if @menu_item)}
      =yield
      
      .clear
       
      
    .bottom
      .infos
        06 60 11 96 00 /
        =link_to "eglantine.noblet@gmail.com", "mailto:eglantine.noblet@gmail.com"
    
      %ul
        -MenuItem.where(:parent_id => nil, :enabled => true, :visible => true, :menu_id => Menu.find_by_slug("infos").id).order(:position).each do |menu_item|
          -description = ""
          -description = menu_item.menu_content.description if menu_item.menu_content and menu_item.menu_content_type == "Page"
          %li=link_to sanitize("#{menu_item.name}"),menu_item_path(:url => menu_item.url), :class => menu_item.slug.to_s+"_menu"+(" active" if @menu_item and (@menu_item == menu_item or @menu_item.ancestors.include?(menu_item))).to_s
  
          
      
    
      
      
    =link_to image_tag("/nb.png"), "http://nicolasbally.com", :target => "_blank", :id => "nb"
  

    

    
    
  

