2016-11-21 16:13:19 +01:00
#beta{class:(Rails.env == 'production' ? '' : 'beta_staging')}
- if Rails.env == 'production'
Beta
- else
Env Test
2016-09-26 13:58:54 +02:00
2016-11-21 15:04:16 +01:00
%div.col-lg-2.col-md-2.no-padding
%a#title_navbar{href: '/'}
%div.row#home
%div.col-lg-6
= image_tag('marianne_small.png', class: 'logo')
%div.col-lg-6#tps-title
TPS
2016-11-24 19:33:34 +01:00
2016-11-21 15:04:16 +01:00
%div.col-lg-10.col-md-10.no-padding
%div#navbar-body
%div.row
2016-11-28 10:15:11 +01:00
-begin
= render partial: @navbar_url
-rescue
= render partial: 'layouts/navbars/navbar_default'
2016-11-22 16:32:50 +01:00
%div.col-lg-1.col-md-1.log-options
%span.fa.fa-sign-out
2016-08-22 14:00:34 +02:00
2016-11-22 16:03:32 +01:00
- if false
- if gestionnaire_signed_in? && user_signed_in?
%a{href: (current_gestionnaire.procedure_filter.blank? ? backoffice_dossiers_path : backoffice_dossiers_procedure_path(current_gestionnaire.procedure_filter)), class: 'btn btn-md'}
=t('dynamics.backoffice.dossiers')
%a{href: users_dossiers_path, class: 'btn btn-md'}
=t('dynamics.users.mes_dossiers')
- elsif gestionnaire_signed_in?
%a{href: (current_gestionnaire.procedure_filter.blank? ? backoffice_dossiers_path : backoffice_dossiers_procedure_path(current_gestionnaire.procedure_filter)), class: 'btn btn-md'}
=t('dynamics.users.mes_dossiers')
- elsif user_signed_in?
%a{href: users_dossiers_path, class: 'btn btn-md'}
=t('dynamics.users.mes_dossiers')
- elsif administrateur_signed_in?
%a{href: admin_procedures_path, class: 'btn btn-md'}
=t('dynamics.admin.menu.title')
2016-11-21 15:04:16 +01:00
2016-11-22 16:03:32 +01:00
-if user_signed_in?
= render partial: 'users/login_banner'
-elsif gestionnaire_signed_in?
= render partial: 'gestionnaires/login_banner'
-elsif administrateur_signed_in?
= render partial: 'administrateurs/login_banner'
-else
= link_to "Utilisateur", '/users/sign_in', method: :get, :class => 'btn btn-md'
-unless Features.unified_login
= link_to "Accompagnateur", '/gestionnaires/sign_in', method: :get, :class => 'btn btn-md'
= link_to "Administrateur", '/administrateurs/sign_in', method: :get, :class => 'btn btn-md'
2016-11-21 15:04:16 +01:00
2016-11-22 16:03:32 +01:00
- 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
?