From 16fcfd284e3a99bc57449f18501e6f75e91c9d94 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 21 Aug 2011 21:55:47 +0200 Subject: [PATCH] Add a flash message + the name of the site when sending invitations --- budget/templates/invitation_mail | 2 +- budget/web.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)