#4955 - ajout d'un bandeau d'informations coronavirus

This commit is contained in:
clemkeirua 2020-03-27 15:27:40 +01:00
parent 3120f94370
commit 6a22ba7036
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#strike-banner.site-banner
.container
.site-banner-icon ⚠️
.site-banner-text
%strong
En raison de lépidémie du coronavirus, les services fonctionnent en mode dégradé.
%br
Les délais de prise en charge des dossiers ou de réponses aux questions pourront être perturbés durant cette période.

View file

@ -3,6 +3,14 @@
- dossier = controller.try(:dossier_for_help)
- procedure = controller.try(:procedure_for_help)
-# only display the coronavirus to usagers (instructeurs know there are delays) when they are logged in, or on the public pages.
- if user_signed_in?
- if dossier.present? && feature_enabled_for?(:coronavirus_banner, dossier.procedure)
= render partial: 'layouts/coronavirus_banner'
- else
- if procedure.present? && feature_enabled_for?(:coronavirus_banner, procedure)
= render partial: 'layouts/coronavirus_banner'
%header.new-header{ class: current_page?(root_path) ? nil : "new-header-with-border", role: 'banner' }
.header-inner-content