diff --git a/manuels/context_processors.py b/manuels/context_processors.py new file mode 100644 index 0000000..dc80c56 --- /dev/null +++ b/manuels/context_processors.py @@ -0,0 +1,5 @@ +import os + + +def authorized_mails(request): + return {'authorized_mails': os.getenv('AUTHORIZED_MAILS', '').split(',')} diff --git a/manuels/templates/manuels/base.html b/manuels/templates/manuels/base.html index 21943db..2a87fb5 100644 --- a/manuels/templates/manuels/base.html +++ b/manuels/templates/manuels/base.html @@ -12,6 +12,22 @@ crossorigin="anonymous"> +
{% for message in messages %}