Minor improvements to email

This commit is contained in:
Yingtong Li 2018-01-04 15:55:20 +08:00
parent 3a44890803
commit e28a003bae
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
3 changed files with 11 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class WebTask(Task):
css=css,
text='<p>The task <i>{}</i> failed execution. The output was:</p><pre>{}</pre>'.format(self.label, '\n'.join(self.messages))
)
html = premailer.Premailer(html).transform()
html = premailer.Premailer(html, strip_important=False).transform()
body = flask.render_template(
'email/base.txt',

View File

@ -59,7 +59,7 @@
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block">
<span class="apple-link"><a href="{{ eosweb.app.config['BASE_URI'] }}">Eos Voting for {{ eosweb.app.config['ORG_NAME'] }}</a></span>
<a href="{{ eosweb.app.config['BASE_URI'] }}" style="text-decoration: none">Eos Voting for {{ eosweb.app.config['ORG_NAME'] }}</a>
</td>
</tr>
</table>

View File

@ -258,6 +258,14 @@ hr {
Margin: 20px 0;
}
/* -------------------------------------
MISCELLANEOUS
------------------------------------- */
pre {
white-space: pre-wrap;
}
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */