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:
commit
675af2776d
2 changed files with 18 additions and 0 deletions
|
@ -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'])
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue