Merge pull request #9020 from demarches-simplifiees/add_administration_header

Ajouter des bannières visant soit les instructeurs / admins soit les usagers
This commit is contained in:
Colin Darie 2023-05-11 15:13:05 +00:00 committed by GitHub
commit 675af2776d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View file

@ -2,3 +2,13 @@
.site-banner.warning
.container
= 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'])

View file

@ -188,3 +188,11 @@ SMTP_AUTHENTICATION="plain"
SENDMAIL_ENABLED="disabled"
SENDMAIL_LOCATION="/usr/sbin/sendmail"
SENDMAIL_ARGUMENTS="-i"
# Various banner for important messages
# for all users
BANNER_MESSAGE=""
# for instructeurs and admins only
ADMINISTRATION_BANNER_MESSAGE=""
# for usager only
USAGER_BANNER_MESSAGE=""