!!!
%html{:lang => "fr"}
  %head
    %meta{:charset => "utf-8"}/
    %meta{:content => "IE=Edge,chrome=1", "http-equiv" => "X-UA-Compatible"}/
    %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
    %title= @title || "Admin"
    = csrf_meta_tags
    = stylesheet_link_tag :admin, :media => :all
    = javascript_include_tag "admin"
    =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false&region=FR"
    
 


        
      


%body.admin
  %nav#admin_nav.navbar.navbar-default.navbar-inverse{role: "navigation"}
    .container-fluid
      / Brand and toggle get grouped for better mobile display
      .navbar-header
        %button.navbar-toggle{"data-target" => "#bs-example-navbar-collapse-1", "data-toggle" => "collapse", type: "button"}
          %span.sr-only Toggle navigation
          %span.icon-bar
          %span.icon-bar
          %span.icon-bar
        %a.navbar-brand{href: "/admin"} 
          Admin
      
      #bs-example-navbar-collapse-1.collapse.navbar-collapse
        %ul.nav.navbar-nav
          %li= link_to "admins", admin_admins_path
          
        
          %li
            -Menu.all.each do |menu|
              = link_to "Pages", admin_menu_items_path(:menu_id => menu.id)
        
          
           
          %li.dropdown
            %a{:href => "#", :class => "dropdown-toggle", :data => {:toggle => "dropdown"}}
              Blog
              %b.caret
            %ul.dropdown-menu
              %li= link_to "Articles", admin_articles_path
            
              %li.divider
            
              %li= link_to "Catégories", admin_categories_path
              %li= link_to "Commentaires", admin_comments_path
          
          
          %li= link_to "Evénements", admin_events_path
          
          %li= link_to "Images", admin_image_files_path
          %li= link_to "Fichiers", admin_data_files_path
         
       
         
        
        %ul.nav.navbar-nav.navbar-right
          %li.dropdown
            %a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
              =current_admin.firstname
              =current_admin.name
              %b.caret
            %ul.dropdown-menu
              %li.divider
              %li=link_to "se déconnecter", logout_admin_admin_auths_path
            
  
  
          
          
            
  .container-fluid

    = yield
  
  
  
  #flashs= bootstrap_flash
  


    

