Skip to content

Commit

Permalink
Merge pull request #241 from liqd/2016-09-pv-activation-mail
Browse files Browse the repository at this point in the history
update activation mail
  • Loading branch information
slomo committed Sep 1, 2016
2 parents e5edd25 + b5fb3db commit 0e95ef4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 11 deletions.
15 changes: 7 additions & 8 deletions euth/user_management/templates/emails/register.en.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
{% extends 'email_base.html' %}
{% block subject %}
You created an account for {{sitename}}
You created an account for {{site.name}}
{% endblock %}
{% block content %}
<h2>You requested to register to {{sitename}}</h2>
<h2>You requested to register to {{site.name}}</h2>
<p>Dear {{registration.username}},</p>

<p>
We have received your registration request for {{site.name}} using this email address. Please visit
<a href="{{activation_url}}">{{site.name}}</a> to activate your account.
We have received your registration request for {{site.name}} using this email address.
To activate your account please click the following link
<a href="{{activation_url}}" style="display: block; margin-top: 10px;">{{activation_url}}</a>
</p>

<p>
Best wishes<br>
<br>
{{sitename}} team
<p style="margin-top: 20px;">
<a href="{{activation_url}}" class="button">activate</a>
</p>
{% endblock %}
34 changes: 31 additions & 3 deletions euth_wagtail/templates/email_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% block subject %}{% endblock %}</title>
<style type="text/css">
body {margin: 0; padding: 0; min-width: 100%!important;}
.content {width: 100%; max-width: 400px; margin: auto; }
.header { background: rgb(256, 256, 256); }
body {
margin: 0;
padding: 0;
min-width: 100% !important;
}

.content {
width: 100%;
max-width: 400px;
margin: auto;
}

.header {
background: rgb(256, 256, 256);
}

.button {
border-radius: 40px;
padding: 0 20px;
font-weight: bold;
line-height: 40px;
margin: 0 auto;
text-transform: uppercase;
color: #fff;
background-color: #337AB7;
border-color: #2e6da4;
display: inline-block;
text-align: center;
vertical-align: middle;
text-decoration: none;
}
</style>
</head>
<body>
Expand Down

0 comments on commit 0e95ef4

Please sign in to comment.