From 3b241529b7a9c5bb449220f7430c70d3b67c3184 Mon Sep 17 00:00:00 2001 From: xuwhite <73076134+xuwhite@users.noreply.github.com> Date: Sun, 24 Sep 2023 15:10:10 +0200 Subject: [PATCH] Add event name and day of event to mail footer (#1214) --- resources/views/emails/mail.twig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/emails/mail.twig b/resources/views/emails/mail.twig index 3c9f7537..ce15d8a3 100644 --- a/resources/views/emails/mail.twig +++ b/resources/views/emails/mail.twig @@ -5,4 +5,10 @@ {% block message %}{{ message|raw }}{% endblock %} {{ '-- ' }} -{% block footer %}{{ __('This email is autogenerated and has not been signed. You got this email because you are registered in the %s.', [config('app_name')]) }}{% endblock %} +{% block footer %} +{{config('name')}} +{%- if config('enable_show_day_of_event') and day_of_event is defined %} +, {{ __('event.day', [day_of_event]) }} +{% endif %} +{{ __('This email is autogenerated and has not been signed. You got this email because you are registered in the %s.', [config('app_name')]) }} +{% endblock %}