Minor improvements to email
This commit is contained in:
parent
3a44890803
commit
e28a003bae
@ -38,7 +38,7 @@ class WebTask(Task):
|
|||||||
css=css,
|
css=css,
|
||||||
text='<p>The task <i>{}</i> failed execution. The output was:</p><pre>{}</pre>'.format(self.label, '\n'.join(self.messages))
|
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(
|
body = flask.render_template(
|
||||||
'email/base.txt',
|
'email/base.txt',
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<table border="0" cellpadding="0" cellspacing="0">
|
<table border="0" cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="content-block">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -258,6 +258,14 @@ hr {
|
|||||||
Margin: 20px 0;
|
Margin: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------
|
||||||
|
MISCELLANEOUS
|
||||||
|
------------------------------------- */
|
||||||
|
|
||||||
|
pre {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------
|
/* -------------------------------------
|
||||||
RESPONSIVE AND MOBILE FRIENDLY STYLES
|
RESPONSIVE AND MOBILE FRIENDLY STYLES
|
||||||
------------------------------------- */
|
------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user