!!!
%html{:lang => "en"}
  %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
    = javascript_include_tag "admin"
    <script src="/ace_editor/ace-uncompressed-noconflict.js" type="text/javascript" charset="utf-8"></script>
    =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false&region=FR"
    
 


        
      


%body.admin
  .navbar.navbar-inverse
    .navbar-inner{:style => "border-radius:0px;"}
      .container
        %a.btn.btn-navbar{:data => {:toggle => "collapse", :target => ".nav-collapse"}}
          %span.icon-bar
          %span.icon-bar
          %span.icon-bar
        
        
        
      
      
        %a.brand{:href => "/admin"} 
          =i(:home, :icon => false)
          Administration
        .collapse.nav-collapse
          %ul.nav
      
            %li= link_to "admins", admin_admins_path
            %li
              -Menu.all.each do |menu|
                = link_to "éléments de menu", 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 "Newsletters", admin_newsletters_path
           
          %ul.nav.pull-right

            %li.dropdown
              %a{:href => "#", :class => "dropdown-toggle", :data => {:toggle => "dropdown"}}
                =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


    

