!!!
%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"
=javascript_include_tag "forum"
=stylesheet_link_tag "forum"
= csrf_meta_tags
=javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false®ion=FR"
%style=Pygments.css('.highlight')
%body.admin
-if current_fuser
.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 => "/forum/forum_topics"}
=i(:home, :icon => false)
Forum du Pic Vert
.collapse.nav-collapse
%ul.nav
%li=link_to "Fils de discussion", forum_forum_topics_path
%li=link_to "Utilisateurs", forum_forum_users_path
%ul.nav.pull-right
%li.dropdown
%a{:href => "#", :class => "dropdown-toggle", :data => {:toggle => "dropdown"}}
=image_tag (current_fuser.avatar? ? current_fuser.avatar.square.url : ""), :class => "img img-rounded", :style => "height:15px;"
=current_fuser.firstname
=current_fuser.name
%b.caret
%ul.dropdown-menu
%li.divider
%li=link_to "se déconnecter", logout_forum_auths_path, :method => :delete
#toolbar-text
#main.container-fluid
= yield
-if current_fuser and current_fuser.sheet and current_fuser.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
%p{:style => "float:right;"}
-if current_fuser and current_fuser.sheet
Cotisation à jour pour
=current_fuser.sheet.last_year.to_s+" - "
N° d'adhésion :
="#"+current_fuser.sheet.sheet_number.to_s
=link_to image_tag("logo.png", :style => "height:100px;"), "/forum"
#flashs= bootstrap_flash