From abd454c45633e335d9d63bcd250e760b968f8138 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 20 Jan 2016 17:43:10 +0100 Subject: Update HTML 2FA template Split paragraph in translation Inject wallabag_url for image in HTML template Remove username & password from config_dev.yml (null are already the default value) --- .../views/TwoFactor/email_auth_code.html.twig | 35 ++++++++++++---------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'src/Wallabag/UserBundle/Resources/views') diff --git a/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig b/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig index 849cd136..69d23160 100644 --- a/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig @@ -2,6 +2,17 @@ {{ "auth_code.mailer.subject"|trans({}, 'wallabag_user') }} {% endblock %} +{% block body_text %} +{{ "auth_code.mailer.body.hello"|trans({'%user%': user}, 'wallabag_user') }} + +{{ "auth_code.mailer.body.first_para"|trans({}, 'wallabag_user') }} +{{ "auth_code.mailer.body.second_para"|trans({}, 'wallabag_user') }} {{ code }} + +{{ "auth_code.mailer.body.support"|trans({}, 'wallabag_user') }} {{ support_url }} + +{{ "auth_code.mailer.body.signature"|trans({}, 'wallabag_user') }} +{% endblock %} + {% block body_html %} @@ -63,10 +74,10 @@ - + @@ -75,10 +86,11 @@

{{ "auth_code.mailer.body.hello"|trans({'%user%': user}, 'wallabag_user') }}

-

{{ "auth_code.mailer.body.content"|trans({'%code%': code}, 'wallabag_user') }}

- -

{{ "auth_code.mailer.body.signature"|trans({'%support%': support}, 'wallabag_user') }}

+

{{ "auth_code.mailer.body.first_para"|trans({}, 'wallabag_user') }}

+

{{ "auth_code.mailer.body.second_para"|trans({}, 'wallabag_user') }} {{ code }}

+

{{ "auth_code.mailer.body.support"|trans({}, 'wallabag_user') }} {{ support_url }}

+

{{ "auth_code.mailer.body.signature"|trans({}, 'wallabag_user') }}

@@ -87,8 +99,8 @@
logologo -

Wallabag

-
{% trans %}on{% endtrans %} { wallabag_url }
+

wallabag

+
{% trans %}on{% endtrans %} {{ wallabag_url }}
 
 
- - + +
{ wallabag_url }Powered by Wallabag{{ wallabag_url }}Powered by wallabag
@@ -103,10 +115,3 @@ {% endblock %} - -{% block body_text %} -{{ "auth_code.mailer.body.hello"|trans({'%user%': user}, 'wallabag_user') }} - -{{ "auth_code.mailer.body.content"|trans({'%code%': code}, 'wallabag_user') }} -{{ "auth_code.mailer.body.signature"|trans({'%support%': support}, 'wallabag_user') }} -{% endblock %} -- cgit v1.2.3