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-08-10 11:05:06 +02:00
|
|
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
|
|
|
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
|
|
|
= csrf_meta_tags
|
|
|
|
%body
|
|
|
|
%div
|
|
|
|
%div.navbar
|
|
|
|
= image_tag('marianne_small.png', class: 'logo')
|
|
|
|
%a{href: '/', class:'btn btn-lg'}
|
2015-09-01 13:59:53 +02:00
|
|
|
='TPS'
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-09-22 10:15:12 +02:00
|
|
|
-if gestionnaire_signed_in?
|
2015-08-10 11:05:06 +02:00
|
|
|
%div{style: 'decorate:none; box-shadow:none; float:right; margin-top:8px'}
|
2015-09-22 10:15:12 +02:00
|
|
|
= current_gestionnaire.email
|
|
|
|
= link_to "Déconnexion", '/gestionnaires/sign_out', method: :delete, :class => 'btn btn-md'
|
2015-10-23 16:19:55 +02:00
|
|
|
-elsif administrateur_signed_in?
|
|
|
|
%div{style: 'decorate:none; box-shadow:none; float:right; margin-top:8px'}
|
|
|
|
= current_administrateur.email
|
|
|
|
= link_to "Déconnexion", '/administrateurs/sign_out', method: :delete, :class => 'btn btn-md'
|
|
|
|
|
2015-09-23 10:02:01 +02:00
|
|
|
- elsif user_signed_in?
|
|
|
|
%div.user{style: 'decorate:none; box-shadow:none; float:right; margin-top:8px'}
|
2015-10-08 12:11:01 +02:00
|
|
|
-if current_user.loged_in_with_france_connect
|
2015-10-08 18:53:41 +02:00
|
|
|
= image_tag('logo_FC_02_small.png', class: 'logo_fc_small')
|
2015-10-08 12:11:01 +02:00
|
|
|
-else
|
|
|
|
%i.fa.fa-user
|
2015-09-23 10:02:01 +02:00
|
|
|
= current_user.email
|
|
|
|
= link_to "Déconnexion", '/users/sign_out', method: :delete, :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
|
|
|
|
|
|
|
|
%div{:style => 'margin-left:10%; margin-right:10%;'}
|
|
|
|
= yield
|