!!!
%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 || "Espace étudiants"
    
    =javascript_include_tag "student"
    =stylesheet_link_tag "student"
    = csrf_meta_tags
    = stylesheet_link_tag '/fonts/Stylograph/stylesheet.css' 

    <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
  
  -if current_suser
    %nav#menu_top.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: "/student"} 
            =ic(:"graduation-cap")
            Espace étudiants
      
        #bs-example-navbar-collapse-1.collapse.navbar-collapse
          %ul.nav.navbar-nav
            
            %li=link_to ic(:"users")+" Annuaire", student_student_users_path
            %li=link_to ic(:"folder-open")+" Ressources", student_topics_path
            
          
          %ul.nav.navbar-nav.navbar-right
            %li.dropdown
              %a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
                =image_tag (current_suser.avatar? ? current_suser.avatar.square.url : ""), :class => "img img-rounded", :style => "height:15px;"
                =current_suser.firstname
                =current_suser.name
                %b.caret
              %ul.dropdown-menu
                %li=link_to ic(:pencil)+" Mon profil", edit_student_student_user_path(current_suser)
                %li.divider
                %li=link_to "se déconnecter", logout_student_auths_path
                
        
          
  #toolbar-text     
            
  #main.container-fluid

    = yield

  -if current_suser and current_suser.sheet and current_suser.sheet.last_year < Date.today.year
    %div{:style => "background:#e16b13;padding:10px;text-align:center;color:white;"}
      %a{:href => "http://www.lepicvert.asso.fr/131/lassociation/adherer", :style => "color:white;text-decoration:none;"}
        Attention : votre adhésion n'a pas encore été renouvelée pour 
        = Date.today.year.to_s+"."
        
    
  

      
  
  .footer
    .container
      %p{:style => "float:right;"}
        -if current_suser and current_suser.sheet
          Cotisation à jour pour
          =current_suser.sheet.last_year.to_s+" - "
          N° d'adhésion : 
          ="#"+current_suser.sheet.sheet_number.to_s
      =link_to image_tag("/logo-white.png", :style => "height:100px;"), "/student"
    
    
    
  #flashs= bootstrap_flash


    






    


