]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/mail/register.html.twig
Replace dropped calls with checker, factory and security replacements
[airbundle] / Resources / views / mail / register.html.twig
index 7497c6e17641a37f80b8a982ccc220f6e725ac3e..d5acf7343577792a13771f58aae54c5cf8880dc6 100644 (file)
@@ -1,13 +1,14 @@
 {% extends '@RapsysAir/mail/body.html.twig' %}
-{% block title %}{{ subject }}{% endblock %}
 {% block content %}
        <table class="content">
                <tr>
                        <td>&nbsp;</td>
                        <td>
-                               <h2>{{ 'Subject: %subject%'|trans({'%subject%': 'welcome to %site_title%'|trans({'%site_title%': site_title})|raw}) }}</h2>
-                               <h3>{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}</h3>
-                               <p>{{ 'Thanks so much for joining %site_title%, the space reservation program.'|trans({'%site_title%': site_title}) }}</p>
+                               <h2>{{ 'Subject: %subject%'|trans({'%subject%': 'welcome to %site.title%'|trans({'%site.title%': site.title})|raw}) }}</h2>
+                               <h3>{% if recipient_name %}{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}{% else %}{% trans %}Hi,{% endtrans %}{% endif %}</h3>
+                               <p>{{ 'Thanks so much for joining %site.title%, the space reservation program.'|trans({'%site.title%': site.title}) }}</p>
+                               <p>{% trans %}To create your account you must follow this link:{% endtrans %}</p>
+                               <p><a href="{{ confirm_url|escape('html_attr') }}" class="link">{{ confirm_url }}</a></p>
                        </td>
                        <td>&nbsp;</td>
                </tr>