aboutsummaryrefslogtreecommitdiff
path: root/budget
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-08-21 21:55:47 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-08-21 21:55:47 +0200
commit16fcfd284e3a99bc57449f18501e6f75e91c9d94 (patch)
tree3a008603883c7497112dca32b7e28596f5ce0aaf /budget
parent929833cc04e81a8586892d33a9d1bbbc38592ea4 (diff)
downloadihatemoney-mirror-16fcfd284e3a99bc57449f18501e6f75e91c9d94.zip
ihatemoney-mirror-16fcfd284e3a99bc57449f18501e6f75e91c9d94.tar.gz
ihatemoney-mirror-16fcfd284e3a99bc57449f18501e6f75e91c9d94.tar.bz2
Add a flash message + the name of the site when sending invitations
Diffstat (limited to 'budget')
-rw-r--r--budget/templates/invitation_mail2
-rw-r--r--budget/web.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/budget/templates/invitation_mail b/budget/templates/invitation_mail
index 83a7840..62f2ff2 100644
--- a/budget/templates/invitation_mail
+++ b/budget/templates/invitation_mail
@@ -4,7 +4,7 @@ Someone using the email adress {{ g.project.contact_email }} invited you to shar
It's as simple as saying what did you paid for, for who, and how much did it cost you, we are caring about the rest.
-You can access it here: {{ SITE_URL }}{{ url_for("list_bills") }}, the password is "{{ g.project.password }}".
+You can access it here: {{ config['SITE_URL'] }}{{ url_for("list_bills") }}, the password is "{{ g.project.password }}".
Enjoy,
Some weird guys
diff --git a/budget/web.py b/budget/web.py
index 39ffd1a..d91bbb7 100644
--- a/budget/web.py
+++ b/budget/web.py
@@ -152,6 +152,7 @@ def invite():
recipients=[email.strip()
for email in form.emails.data.split(",")])
mail.send(msg)
+ flash("You invitations have been sent")
return redirect(url_for("list_bills"))
return render_template("send_invites.html", form=form)