add banner for administrations / usagers
This commit is contained in:
parent
5a3cbcdb72
commit
19c9d12e71
2 changed files with 18 additions and 0 deletions
|
@ -2,3 +2,13 @@
|
||||||
.site-banner.warning
|
.site-banner.warning
|
||||||
.container
|
.container
|
||||||
= sanitize(ENV['BANNER_MESSAGE'])
|
= 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_ENABLED="disabled"
|
||||||
SENDMAIL_LOCATION="/usr/sbin/sendmail"
|
SENDMAIL_LOCATION="/usr/sbin/sendmail"
|
||||||
SENDMAIL_ARGUMENTS="-i"
|
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…
Add table
Reference in a new issue