From ffd28a6faa3000d015df032542f6a8308979ba9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 28 Jul 2021 09:37:59 +0200 Subject: [PATCH] Rename section to page.title Rename description to page.description Rename site_title to site.title Cleanup --- Resources/views/form/contact.html.twig | 4 ++-- Resources/views/mail/recover.text.twig | 2 +- Resources/views/mail/recover_mail.text.twig | 2 +- Resources/views/mail/register.text.twig | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Resources/views/form/contact.html.twig b/Resources/views/form/contact.html.twig index ee75ed0..783bc6e 100644 --- a/Resources/views/form/contact.html.twig +++ b/Resources/views/form/contact.html.twig @@ -2,8 +2,8 @@ {% block content %}
-

{{ section }}

-

{{ description }}

+

{{ page.title }}

+

{{ page.description }}

{% if sent %}

{% trans %}Your message has been sent{% endtrans %}

diff --git a/Resources/views/mail/recover.text.twig b/Resources/views/mail/recover.text.twig index c6ef6df..f33fc09 100644 --- a/Resources/views/mail/recover.text.twig +++ b/Resources/views/mail/recover.text.twig @@ -2,7 +2,7 @@ {% for i in range(1, subject|length) %}={% endfor %} -*{{ 'Thanks so much for rejoining %site_title%, the space reservation program.'|trans({'%site_title%': site.title}) }}* +*{{ '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: %recover_url%'|trans({'%recover_url%': recover_url}) }} diff --git a/Resources/views/mail/recover_mail.text.twig b/Resources/views/mail/recover_mail.text.twig index 6acbc4a..b5e09ea 100644 --- a/Resources/views/mail/recover_mail.text.twig +++ b/Resources/views/mail/recover_mail.text.twig @@ -2,7 +2,7 @@ {% for i in range(1, subject|length) %}={% endfor %} -*{{ 'Thanks so much for rejoining %site.title%, the space reservation program.'|trans({'%site.title%': site.title|trans}) }}* +*{{ '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: %recover_url%'|trans({'%recover_url%': recover_url}) }} diff --git a/Resources/views/mail/register.text.twig b/Resources/views/mail/register.text.twig index 347ac5a..06360f5 100644 --- a/Resources/views/mail/register.text.twig +++ b/Resources/views/mail/register.text.twig @@ -2,7 +2,7 @@ {% for i in range(1, subject|length) %}={% endfor %} -*{{ '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