61 lines
924 B
Plaintext
61 lines
924 B
Plaintext
!!!
|
|
|
|
%html{:lang => "fr"}
|
|
%head
|
|
%meta{:"http-equiv" => "content-type" ,:content =>"text/html;charset=UTF-8" }
|
|
%title
|
|
Espace d'Administration
|
|
|
|
=javascript_include_tag "admin"
|
|
=stylesheet_link_tag "admin"
|
|
|
|
= csrf_meta_tag
|
|
|
|
%style=Pygments.css('.highlight')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%body
|
|
|
|
|
|
|
|
|
|
-if current_admin
|
|
|
|
#breadcrumb
|
|
|
|
.personnal
|
|
=image_tag current_admin.avatar.square.url, :class => "avatar"
|
|
%span
|
|
=current_admin.firstname
|
|
=current_admin.name
|
|
|
|
.menu
|
|
=link_to "Se déconnecter", logout_admin_auths_path, :class => "logout_link"
|
|
|
|
|
|
%nav
|
|
=link_to "Dashboard", "/admin"
|
|
|
|
= yield
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#flash
|
|
|
|
-if flash[:alert] or (@flash_i and @flash_i[:alert])
|
|
.message.closeable.alert
|
|
= flash[:alert]
|
|
= @flash_i[:alert] if @flash_i and @flash_i[:alert]
|
|
-if flash[:notice]
|
|
.message.closeable.notice
|
|
= flash[:notice]
|
|
|
|
|