From 5b74bbd288b95dc70d10208064e18e709eb79082 Mon Sep 17 00:00:00 2001 From: Marco Pfeiffer Date: Tue, 23 Jun 2020 11:57:07 +0200 Subject: [PATCH] add .body wrapper element This change makes the notification email responsive. --- .../Email/zurb_2/notification/body.html.twig | 96 ++++++++++--------- 1 file changed, 49 insertions(+), 47 deletions(-) diff --git a/src/Symfony/Bridge/Twig/Resources/views/Email/zurb_2/notification/body.html.twig b/src/Symfony/Bridge/Twig/Resources/views/Email/zurb_2/notification/body.html.twig index 662791aba6..2f3a346df5 100644 --- a/src/Symfony/Bridge/Twig/Resources/views/Email/zurb_2/notification/body.html.twig +++ b/src/Symfony/Bridge/Twig/Resources/views/Email/zurb_2/notification/body.html.twig @@ -10,54 +10,56 @@ - - - - - {% block lead %} - {{ importance|upper }} -

- {{ email.subject }} -

- {% endblock %} - - {% block content %} - {% if markdown %} - {{ include('@email/zurb_2/notification/content_markdown.html.twig') }} - {% else %} - {{ (raw ? content|raw : content)|nl2br }} - {% endif %} - {% endblock %} - - {% block action %} - {% if action_url %} - - - {% endif %} - {% endblock %} - - {% block exception %} - {% if exception %} - -

Exception stack trace attached.

- {% endif %} - {% endblock %} -
-
- - + + - {% block footer %} - - - {% block footer_content %} -

Notification e-mail sent by Symfony

- {% endblock %} -
-
- {% endblock %} -
-
+ + + {% block lead %} + {{ importance|upper }} +

+ {{ email.subject }} +

+ {% endblock %} + + {% block content %} + {% if markdown %} + {{ include('@email/zurb_2/notification/content_markdown.html.twig') }} + {% else %} + {{ (raw ? content|raw : content)|nl2br }} + {% endif %} + {% endblock %} + + {% block action %} + {% if action_url %} + + + {% endif %} + {% endblock %} + + {% block exception %} + {% if exception %} + +

Exception stack trace attached.

+ {% endif %} + {% endblock %} +
+
+ + + + {% block footer %} + + + {% block footer_content %} +

Notification e-mail sent by Symfony

+ {% endblock %} +
+
+ {% endblock %} +
+ + {% endapply %}