demarches-normaliennes/app/views/layouts/_pre_maintenance.html.haml

15 lines
441 B
Text
Raw Normal View History

2020-09-08 14:52:31 +02:00
- if ENV['BANNER_MESSAGE'].present?
.site-banner.warning
.container
2020-09-08 14:52:31 +02:00
= sanitize(ENV['BANNER_MESSAGE'])
- if ENV['ADMINISTRATION_BANNER_MESSAGE'].present? && instructeur_signed_in?
.site-banner.warning
.container
= sanitize(ENV['ADMINISTRATION_BANNER_MESSAGE'])
- if ENV['USAGER_BANNER_MESSAGE'].present? && !instructeur_signed_in?
.site-banner.warning
.container
= sanitize(ENV['USAGER_BANNER_MESSAGE'])