#4955 - ajout d'un bandeau d'informations coronavirus
This commit is contained in:
parent
3120f94370
commit
6a22ba7036
2 changed files with 16 additions and 0 deletions
8
app/views/layouts/_coronavirus_banner.html.haml
Normal file
8
app/views/layouts/_coronavirus_banner.html.haml
Normal 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.
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue