Incorporate breaking utils changes

Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/94
This commit is contained in:
Chris Hill-Scott
2016-12-08 11:50:59 +00:00
parent ae356fc741
commit dc63de0f4e
16 changed files with 90 additions and 100 deletions

View File

@@ -3,8 +3,7 @@ from app.main import main
from app import convert_to_boolean
from flask_login import (login_required, current_user)
from notifications_utils.renderers import HTMLEmail
from notifications_utils.template import HTMLEmailTemplate
@main.route('/')
@@ -57,9 +56,7 @@ def terms():
@main.route('/_email')
def email_template():
return HTMLEmail(
govuk_banner=convert_to_boolean(request.args.get('govuk_banner', True))
)(
return str(HTMLEmailTemplate({'subject': 'foo', 'content': (
'Lorem Ipsum is simply dummy text of the printing and typesetting '
'industry.\n\nLorem Ipsum has been the industrys standard dummy '
'text ever since the 1500s, when an unknown printer took a galley '
@@ -96,7 +93,8 @@ def email_template():
'This is an example of an email sent using GOV.UK Notify.'
'\n\n'
'https://www.notifications.service.gov.uk'
)
)}, govuk_banner=convert_to_boolean(request.args.get('govuk_banner', True))
))
@main.route('/documentation')