!!!
%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"
    
    %style=Pygments.css('.highlight')


        
      


%body.admin
  .navbar.navbar-fixed-top.navbar-inverse
    .navbar-inner
      .container-fluid
        %ul.nav.pull-right

          %li.dropdown
            %a{:href => "#", :class => "dropdown-toggle", :data => {:toggle => "dropdown"}}
              =image_tag (current_admin.file? ? current_admin.file.square.url : ""), :class => "img img-rounded", :style => "height:15px;"
              =current_admin.firstname
              =current_admin.name
              %b.caret
            %ul.dropdown-menu
              %li.divider
              %li=link_to "Se déconnecter", destroy_admin_session_path, :class => "logout_link",:method => :delete
            
            
      
      
        %a.brand{:href => "/admin"} Administration
        .container.nav-collapse
          %ul.nav
            %li=link_to i(:home), "/admin"
            %li=link_to "Admins", admin_admins_path
            %li.dropdown
              %a{:href => "#", :class => "dropdown-toggle", :data => {:toggle => "dropdown"}}
                Adhérents
                %b.caret
              %ul.dropdown-menu
                %li=link_to "liste des adhérents", sheets_path
                %li=link_to "gestion newsletters", newsletters_path
                %li.divider
                %li=link_to "Sondages", admin_surveys_path
                %li=link_to "Petitions", admin_petitions_path
                
            
            
            
            %li=link_to "notes", topics_path
            %li=link_to "urls courtes", tiny_urls_path
            
            
            
  .container-fluid
    
    = yield

  #flashs= bootstrap_flash


    


