diff --git a/subscribie/blueprints/admin/__init__.py b/subscribie/blueprints/admin/__init__.py index d6197be1..96855bb5 100644 --- a/subscribie/blueprints/admin/__init__.py +++ b/subscribie/blueprints/admin/__init__.py @@ -1351,7 +1351,14 @@ def add_custom_code(): @admin.app_context_processor def inject_template_globals(): - return dict(currencyFormat=currencyFormat) + reply_to_email_address = None + setting = Setting.query.first() + if setting is not None: + reply_to_email_address = setting.reply_to_email_address + return dict( + currencyFormat=currencyFormat, + reply_to_email_address=reply_to_email_address, # noqa: E501 + ) @admin.route("/subscribers") diff --git a/subscribie/blueprints/admin/templates/admin/dashboard.html b/subscribie/blueprints/admin/templates/admin/dashboard.html index cee3c2a5..326a3413 100644 --- a/subscribie/blueprints/admin/templates/admin/dashboard.html +++ b/subscribie/blueprints/admin/templates/admin/dashboard.html @@ -29,6 +29,11 @@