]> Raphaël G. Git Repositories - blogbundle/commitdiff
Add recover mail template
authorRaphaël Gertz <git@rapsys.eu>
Mon, 11 Dec 2023 06:00:53 +0000 (07:00 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 11 Dec 2023 06:00:53 +0000 (07:00 +0100)
Resources/views/mail/recover.html.twig [new file with mode: 0644]
Resources/views/mail/recover.text.twig [new file with mode: 0644]

diff --git a/Resources/views/mail/recover.html.twig b/Resources/views/mail/recover.html.twig
new file mode 100644 (file)
index 0000000..3e7a954
--- /dev/null
@@ -0,0 +1,14 @@
+{% extends '@RapsysBlog/mail/_base.html.twig' %}
+{% block content %}
+       <tbody>
+               <tr>
+                       <td colspan="2">
+                               <h2 title="{% trans %}Subject{% endtrans %}">{{ 'Welcome back to %head.site%'|trans({'%head.site%': head.site}) }}</h2>
+                               <h3>{% if recipient_name %}{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}{% else %}{% trans %}Hi,{% endtrans %}{% endif %}</h3>
+                               <p>{{ 'Thanks so much for rejoining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}</p>
+                               <p>{% trans %}To recover your account follow this link:{% endtrans %}</p>
+                               <p><a href="{{ recover_url|escape('html_attr') }}" class="link">{{ recover_url }}</a></p>
+                       </td>
+               </tr>
+       </tbody>
+{% endblock %}
diff --git a/Resources/views/mail/recover.text.twig b/Resources/views/mail/recover.text.twig
new file mode 100644 (file)
index 0000000..76f33e0
--- /dev/null
@@ -0,0 +1,12 @@
+{{ subject }}
+{% for i in range(1, subject|length) %}={% endfor %}
+
+
+*{{ 'Thanks so much for rejoining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}*
+
+{% trans %}To recover your account follow this link:{% endtrans %}
+{{ recover_url }}
+
+--
+
+{{ copy.long }} - {{ copy.short }}