84 lines
2.5 KiB
Plaintext
84 lines
2.5 KiB
Plaintext
!!!
|
|
%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®ion=FR"
|
|
|
|
%style=Pygments.css('.highlight')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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.dropdown
|
|
%a{:href => "#", :class => "dropdown-toggle", :data => {:toggle => "dropdown"}}
|
|
Adhérents
|
|
%b.caret
|
|
%ul.dropdown-menu
|
|
%li=link_to "liste des adhérents", admin_sheets_path
|
|
%li=link_to "gestion groupes d'adhérents", admin_newsgroups_path
|
|
%li=link_to i(:envelope, :icon => false)+" gestion newsletters", admin_newsletters_path
|
|
|
|
%li.divider
|
|
%li=link_to "Sondages", admin_survey_types_path
|
|
%li=link_to "Petitions", admin_petitions_path
|
|
|
|
|
|
|
|
|
|
%li=link_to "notes", admin_topics_path
|
|
%li=link_to "urls courtes", admin_tiny_urls_path
|
|
|
|
%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
|
|
|
|
|
|
|
|
.container-fluid
|
|
|
|
= yield
|
|
|
|
#flashs= bootstrap_flash
|
|
|
|
|
|
|
|
|
|
|