replaced mailer library, added email templates (#1462)
This commit is contained in:
21
templates/emails/confirmation.html.twig
Normal file
21
templates/emails/confirmation.html.twig
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends 'emails/layout.html.twig' %}
|
||||
|
||||
{% block title %}
|
||||
{{ 'registration.title'|trans({'%username%': user.displayName}, 'email') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<p>{{ 'registration.intro'|trans({'%email%': user.email}, 'email') }}<p>
|
||||
|
||||
<spacer size="16"></spacer>
|
||||
|
||||
<button class="large primary" href="{{ confirmationUrl }}">{{ 'registration.button'|trans({'%url%': confirmationUrl}, 'email') }}</button>
|
||||
|
||||
<spacer size="16"></spacer>
|
||||
|
||||
<p><small>{{ 'button_copy_url_to_browser'|trans({'%url%': confirmationUrl}, 'email') }}</small></p>
|
||||
|
||||
<spacer size="16"></spacer>
|
||||
|
||||
<p><small>{{ 'automated_email_dont_answer'|trans({}, 'email') }}</small></p>
|
||||
{% endblock %}
|
||||
29
templates/emails/layout.html.twig
Normal file
29
templates/emails/layout.html.twig
Normal file
@@ -0,0 +1,29 @@
|
||||
{% apply inky_to_html|inline_css(source('@css/emails.css')) %}
|
||||
<style type="text/css">
|
||||
body, html, .body {
|
||||
background: #f3f3f3 !important;
|
||||
}
|
||||
.container.header {
|
||||
background: #f3f3f3;
|
||||
}
|
||||
</style>
|
||||
|
||||
<spacer size="32"></spacer>
|
||||
|
||||
<container class="header">
|
||||
<row>
|
||||
<columns>
|
||||
<h1 class="text-center">{% block title %}{% endblock %}</h1>
|
||||
</columns>
|
||||
</row>
|
||||
</container>
|
||||
|
||||
<container class="body-border">
|
||||
<row>
|
||||
<columns>
|
||||
<spacer size="32"></spacer>
|
||||
{% block body %}{% endblock %}
|
||||
</columns>
|
||||
</row>
|
||||
</container>
|
||||
{% endapply %}
|
||||
21
templates/emails/password-reset.html.twig
Normal file
21
templates/emails/password-reset.html.twig
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends 'emails/layout.html.twig' %}
|
||||
|
||||
{% block title %}
|
||||
{{ 'reset.title'|trans({'%username%': user.displayName}, 'email') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<p>{{ 'reset.intro'|trans({'%username%': user.displayName, '%email%': user.email}, 'email') }}<p>
|
||||
|
||||
<spacer size="16"></spacer>
|
||||
|
||||
<button class="large primary" href="{{ confirmationUrl }}">{{ 'reset.button'|trans({'%url%': confirmationUrl}, 'email') }}</button>
|
||||
|
||||
<spacer size="16"></spacer>
|
||||
|
||||
<p><small>{{ 'button_copy_url_to_browser'|trans({'%url%': confirmationUrl}, 'email') }}</small></p>
|
||||
|
||||
<spacer size="16"></spacer>
|
||||
|
||||
<p><small>{{ 'automated_email_dont_answer'|trans({}, 'email') }}</small></p>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user