demarches-normaliennes/app/views/layouts/application.html.haml

74 lines
2.5 KiB
Text
Raw Normal View History

2015-08-10 11:05:06 +02:00
!!!
%html
%head
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
2015-09-01 13:59:53 +02:00
%title TPS - Téléprocédures simplifiées
2015-11-30 14:48:37 +01:00
%meta{'http-equiv' => "X-UA-Compatible", :content => "IE=edge"}
2015-08-10 11:05:06 +02:00
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
2016-02-12 13:49:32 +01:00
= stylesheet_link_tag 'application_split2', media: 'all', 'data-turbolinks-track' => true
2015-08-10 11:05:06 +02:00
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
%body
2016-01-28 17:16:37 +01:00
%div#wrap
2016-02-01 17:16:00 +01:00
%div#header.navbar
#beta
Beta
2015-08-10 11:05:06 +02:00
= image_tag('marianne_small.png', class: 'logo')
2015-12-10 16:09:21 +01:00
%a{href: '/'}
= image_tag('logo-tps.png', class: 'logo')
2015-08-10 11:05:06 +02:00
2015-12-08 18:34:43 +01:00
#sign_out
-if gestionnaire_signed_in?
= render partial: 'gestionnaires/login_banner'
2015-12-08 18:34:43 +01:00
-elsif administrateur_signed_in?
2015-12-14 17:27:14 +01:00
= render partial: 'administrateurs/login_banner'
2015-12-08 18:34:43 +01:00
- elsif user_signed_in?
%div.user
-if current_user.loged_in_with_france_connect?
2016-01-11 17:05:21 +01:00
%div{ id: "fconnect-profile", "data-fc-logout-url" => '/users/sign_out" data-method="delete' }
%a.text-info{ href: "#" }
= "#{current_user.given_name} #{current_user.family_name}"
= link_to "", '/users/sign_out', method: :delete, :class => 'btn fa fa-power-off off-fc-link'
2015-12-08 18:34:43 +01:00
-else
%i.fa.fa-user
2016-01-11 17:05:21 +01:00
= current_user.email
= link_to "Déconnexion", '/users/sign_out', method: :delete, :class => 'btn btn-md'
- else
= link_to "Utilisateur", '/users/sign_in', method: :get, :class => 'btn btn-md'
= link_to "Accompagnateur", '/gestionnaires/sign_in', method: :get, :class => 'btn btn-md'
= link_to "Administrateur", '/administrateurs/sign_in', method: :get, :class => 'btn btn-md'
2015-08-10 11:05:06 +02:00
#flash_message.center
- if flash.notice
.alert.alert-success
= flash.notice
- if flash.alert
.alert.alert-danger
= flash.alert
#main_div.main_div
2015-08-10 11:05:06 +02:00
= yield
2016-01-28 17:16:37 +01:00
%br
#footer.navbar
.container.center
%p{style:'margin-top: 1em;'}
%p{class: "copyright text-muted small"}
Copyright ©
=link_to 'SGMAP', "http://etatplateforme.modernisation.gouv.fr"
2016-02-01 17:16:00 +01:00
2016 - Tous droits réservés
2016-01-28 17:16:37 +01:00
=link_to 'contact@tps.apientreprise.fr', "mailto:contact@tps.apientreprise.fr"