#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
|
@ -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…
Add table
Add a link
Reference in a new issue