Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #10 from hasgeek/issue-9
Browse files Browse the repository at this point in the history
Switch to .html.jinja2 templates
  • Loading branch information
vidya-ram authored Oct 13, 2017
2 parents 31b8f85 + 1b3e07c commit 6d86d30
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion outreach/mailclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def send_confirmation_mail(order_id, subject="Thank you for your order!"):
with app.test_request_context():
order = Order.query.get(order_id)
msg = Message(subject=subject, recipients=[order.buyer_email], bcc=[order.organization.contact_email])
html = email_transform(render_template('order_confirmation_mail.html', order=order, org=order.organization, line_items=order.line_items, base_url=app.config['BASE_URL']))
html = email_transform(render_template('order_confirmation_mail.html.jinja2', order=order, org=order.organization, line_items=order.line_items, base_url=app.config['BASE_URL']))
msg.html = html
msg.body = html2text(html)
mail.send(msg)
File renamed without changes.
2 changes: 1 addition & 1 deletion outreach/views/item_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ def item_collection(item_collection):
category_json = jsonify_category(category)
if category_json:
categories_json.append(category_json)
return jsonify(html=render_template('outreach.html'), categories=categories_json, refund_policy=item_collection.details.get('refund_policy', ''))
return jsonify(html=render_template('outreach.html.jinja2'), categories=categories_json, refund_policy=item_collection.details.get('refund_policy', ''))

0 comments on commit 6d86d30

Please sign in to comment.