From 545d2a7ccf7e8329a212f7f257786fd433b988de Mon Sep 17 00:00:00 2001 From: Xu Date: Wed, 6 Dec 2023 14:39:02 +0100 Subject: [PATCH] fix email formatting --- resources/views/emails/angeltype-added.twig | 1 + resources/views/emails/mail.twig | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/views/emails/angeltype-added.twig b/resources/views/emails/angeltype-added.twig index a66a4eb3..b1c06157 100644 --- a/resources/views/emails/angeltype-added.twig +++ b/resources/views/emails/angeltype-added.twig @@ -3,6 +3,7 @@ {% set url=url('/angeltypes', {'action': 'view', 'angeltype_id': angeltype.id}) %} {% block introduction %} + {{ __('notification.angeltype.added.introduction', [angeltype.name|e, url])|raw }} {% endblock %} diff --git a/resources/views/emails/mail.twig b/resources/views/emails/mail.twig index e008620c..f84d9f96 100644 --- a/resources/views/emails/mail.twig +++ b/resources/views/emails/mail.twig @@ -6,9 +6,10 @@ {{ '-- ' }} {% block footer %} -{{config('name')}} -{%- if config('enable_show_day_of_event') and day_of_event is defined %} -, {{ __('event.day', [day_of_event]) }} -{% endif %} +{{ config('name') }} +{%- if config('enable_show_day_of_event') and day_of_event is defined -%} +{% if config('name') %}, {% endif %}{{ __('event.day', [day_of_event]) }} +{%- endif %} + {{ __('email.footer', [config('app_name')]) }} {% endblock %}