aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/web.py
diff options
context:
space:
mode:
authorJocelynDelalande <JocelynDelalande@users.noreply.github.com>2018-01-07 23:01:34 +0100
committerGitHub <noreply@github.com>2018-01-07 23:01:34 +0100
commit34a21616506402c764d481cc7a28e2b9818518f9 (patch)
treeb7b3079157c9c12976c0df7f329a341e843629b2 /ihatemoney/web.py
parent4ab8863eb20ea75fc0b3990471a01f4874735f3c (diff)
parentc24ee6f1c4e1c1090f0833f65b795512fc03de30 (diff)
downloadihatemoney-mirror-34a21616506402c764d481cc7a28e2b9818518f9.zip
ihatemoney-mirror-34a21616506402c764d481cc7a28e2b9818518f9.tar.gz
ihatemoney-mirror-34a21616506402c764d481cc7a28e2b9818518f9.tar.bz2
Merge pull request #308 from spiral-project/almet/fix-template-inclusion-packaging
Include all .j2 files in the packaged version.
Diffstat (limited to 'ihatemoney/web.py')
-rw-r--r--ihatemoney/web.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ihatemoney/web.py b/ihatemoney/web.py
index e6df385..6b1b358 100644
--- a/ihatemoney/web.py
+++ b/ihatemoney/web.py
@@ -242,7 +242,7 @@ def create_project():
message_title = _("You have just created '%(project)s' "
"to share your expenses", project=g.project.name)
- message_body = render_template("reminder_mail.%s" %
+ message_body = render_template("reminder_mail.%s.j2" %
get_locale().language)
msg = Message(message_title,
@@ -273,7 +273,7 @@ def remind_password():
project = Project.query.get(form.id.data)
# send a link to reset the password
- password_reminder = "password_reminder.%s" % get_locale().language
+ password_reminder = "password_reminder.%s.j2" % get_locale().language
current_app.mail.send(Message(
"password recovery",
body=render_template(password_reminder, project=project),
@@ -395,7 +395,7 @@ def invite():
if form.validate():
# send the email
- message_body = render_template("invitation_mail.%s" %
+ message_body = render_template("invitation_mail.%s.j2" %
get_locale().language)
message_title = _("You have been invited to share your "