+
|
+
diff --git a/eosweb/core/main.py b/eosweb/core/main.py index 6ac9a62..5da1b46 100644 --- a/eosweb/core/main.py +++ b/eosweb/core/main.py @@ -387,6 +387,12 @@ def email_authenticate(): return flask.redirect(flask.url_for('login_complete')) +@app.route('/email') +def tmp(): + import sass + css = sass.compile(string=flask.render_template('email/base.scss')) + return flask.render_template('email/base.html', title='Hello World', text='
Dear voter,
You are registered to vote in the election Election Name.
', css=css) + # === Apps === for app_name in app.config['APPS']: diff --git a/eosweb/core/templates/email/base.html b/eosweb/core/templates/email/base.html new file mode 100644 index 0000000..a8dcf4b --- /dev/null +++ b/eosweb/core/templates/email/base.html @@ -0,0 +1,76 @@ +{# + Eos - Verifiable elections + Copyright © 2017 RunasSudo (Yingtong Li) + + This file adapted from https://github.com/leemunroe/responsive-html-email-template, licensed under the MIT licence. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see+ |
+
+
+
+
+
|
+ + |