From ee387d422d9fcd0b98198714d84aea7a0957ad84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 27 Nov 2019 01:21:00 +0100 Subject: [PATCH] Remove useless translation Switch to base body Add proper escaping --- Resources/views/mail/body.html.twig | 8 ++++---- Resources/views/mail/recover.html.twig | 8 ++++---- Resources/views/mail/recover_mail.html.twig | 8 ++++---- Resources/views/mail/register.html.twig | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Resources/views/mail/body.html.twig b/Resources/views/mail/body.html.twig index fd32b8b..6e580ea 100644 --- a/Resources/views/mail/body.html.twig +++ b/Resources/views/mail/body.html.twig @@ -1,4 +1,4 @@ -{% extends '@RapsysAir/mail/base.html.twig' %} +{% extends '@RapsysAir/base.html.twig' %} {% block stylesheets %} @@ -17,14 +17,14 @@ {% block body %} - - + +
{{ site_title|trans }}

{{ site_title|trans }}

{{ site_title|escape('html_attr') }}

{{ site_title }}

{% block content %}{% endblock %} - + {% endblock %} diff --git a/Resources/views/mail/recover.html.twig b/Resources/views/mail/recover.html.twig index d7ed809..4f9d00d 100644 --- a/Resources/views/mail/recover.html.twig +++ b/Resources/views/mail/recover.html.twig @@ -5,10 +5,10 @@   -

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome back to %site_title%'|trans({'%site_title%': site_title|trans})}) }}

-

{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title|trans}) }}

-

{% trans %}To recover your account you can follow this link: {% endtrans %}

-

{{ recover_url }}

+

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome back to %site_title%'|trans({'%site_title%': site_title})|raw}) }}

+

{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title}) }}

+

{{ 'To recover your account you can follow this link: '|trans }}

+

{{ recover_url }}

  diff --git a/Resources/views/mail/recover_mail.html.twig b/Resources/views/mail/recover_mail.html.twig index 0cfc299..511b8cc 100644 --- a/Resources/views/mail/recover_mail.html.twig +++ b/Resources/views/mail/recover_mail.html.twig @@ -5,10 +5,10 @@   -

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome back to %site_title%'|trans({'%site_title%': site_title|trans})}) }}

-

{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title|trans}) }}

-

{% trans %}Your account password has been changed, to recover your account you can follow this link: {% endtrans %}

-

{{ recover_url }}

+

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome back to %site_title%'|trans({'%site_title%': site_title})|raw}) }}

+

{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site_title}) }}

+

{{ 'Your account password has been changed, to recover your account you can follow this link: '|trans }}

+

{{ recover_url }}

  diff --git a/Resources/views/mail/register.html.twig b/Resources/views/mail/register.html.twig index b5228d2..7497c6e 100644 --- a/Resources/views/mail/register.html.twig +++ b/Resources/views/mail/register.html.twig @@ -5,9 +5,9 @@   -

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome to %site_title%'|trans({'%site_title%': site_title|trans})}) }}

+

{{ 'Subject: %subject%'|trans({'%subject%': 'welcome to %site_title%'|trans({'%site_title%': site_title})|raw}) }}

{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}

-

{{ 'Thanks so much for joining %site_title%, the space reservation program.'|trans({'%site_title%': site_title|trans}) }}

+

{{ 'Thanks so much for joining %site_title%, the space reservation program.'|trans({'%site_title%': site_title}) }}

  -- 2.41.1