From b0beed5f6bd8437549590d73037ae7f61344be12 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 14 Oct 2025 13:29:40 +0200 Subject: [PATCH 1/1] New mail base template New context layout --- templates/mail/_base.html.twig | 47 +++++++++++++++------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/templates/mail/_base.html.twig b/templates/mail/_base.html.twig index 23eea6d..5b2811c 100644 --- a/templates/mail/_base.html.twig +++ b/templates/mail/_base.html.twig @@ -1,10 +1,11 @@ {% extends '@RapsysBlog/_base.html.twig' %} {% block head %} + - {% if head.locale is defined and head.locale %}{% endif %} - - {{ subject }} + {% if locale is defined and locale %}{% endif %} +{% endblock %} +{% block stylesheet %} {% endblock %} -{% block header %} - - - - {##} - - - - -{% endblock %} -{% block message %}{% endblock %} -{% block footer %} - +{% block body %} +
{{ head.logo.alt }}{{ head.logo.alt }}

{{ head.site }}

+ + {% if logo is defined and logo %}{% endif %} + + +
{{ logo.alt|escape('html_attr') }}

{{ title.site }}

+ {% block content %}{% endblock %} + {% if copy is defined and copy %} + - - + + {% endif %} {% endblock %} -- 2.41.3