44 lines
1.8 KiB
Text
44 lines
1.8 KiB
Text
#beta{class:(Rails.env == 'production' ? '' : 'beta_staging')}
|
|
- if Rails.env == 'production'
|
|
Beta
|
|
- else
|
|
Env Test
|
|
= image_tag('marianne_small.png', class: 'logo')
|
|
%a{href: '/'}
|
|
= image_tag('logo-tps.png', class: 'logo')
|
|
%a{href: '/', class: 'btn btn-md'}
|
|
-if gestionnaire_signed_in? || user_signed_in?
|
|
Mes Dossiers
|
|
-elsif administrateur_signed_in?
|
|
Mes Procédures
|
|
|
|
#sign_out
|
|
-if gestionnaire_signed_in?
|
|
= render partial: 'gestionnaires/login_banner'
|
|
-elsif administrateur_signed_in?
|
|
= render partial: 'administrateurs/login_banner'
|
|
- elsif user_signed_in?
|
|
%div.user
|
|
-if current_user.loged_in_with_france_connect?
|
|
%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'
|
|
|
|
-else
|
|
%i.fa.fa-user
|
|
= 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'
|
|
|
|
- if Rails.env != 'production'
|
|
%div.staging_warning
|
|
%b{style:'color: #B00100', 'data-placement' => 'bottom', 'data-original-title' => "Aucune donnée présente sur cette plateforme ne pourra être transférée sur l'environnement final de production.", 'data-toggle' => 'tooltip'}
|
|
Vous vous trouvez actuellement sur la plateforme de test.
|
|
%div.badge.progress-bar-danger
|
|
?
|