aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/invitation_mail
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-08-19 23:44:54 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-08-19 23:44:54 +0200
commit28a3abf96d010db8253b53933d6ab36c4dd412d9 (patch)
tree6dbe43affed2727dd6494e281676bdf75677a59a /budget/templates/invitation_mail
parent402d756bf1e54236164643f2484e8fa9c78dc6d8 (diff)
downloadihatemoney-mirror-28a3abf96d010db8253b53933d6ab36c4dd412d9.zip
ihatemoney-mirror-28a3abf96d010db8253b53933d6ab36c4dd412d9.tar.gz
ihatemoney-mirror-28a3abf96d010db8253b53933d6ab36c4dd412d9.tar.bz2
No need anymore to pass the project_id to the urls.
The project is now directly added to the context local g object, and injected on the fly into the urls that need it. This commits also add ideas found while reading the flask documentation. The project can be enhanced in many ways, some ideas are stated there.
Diffstat (limited to 'budget/templates/invitation_mail')
-rw-r--r--budget/templates/invitation_mail4
1 files changed, 2 insertions, 2 deletions
diff --git a/budget/templates/invitation_mail b/budget/templates/invitation_mail
index 53991ed..83a7840 100644
--- a/budget/templates/invitation_mail
+++ b/budget/templates/invitation_mail
@@ -1,10 +1,10 @@
Hi,
-Someone using the email adress {{ email }} invited you to share your expenses for {{ project.name }} on our application.
+Someone using the email adress {{ g.project.contact_email }} invited you to share your expenses for {{ g.project.name }} on our application.
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", project_id=project.id) }}, the password is "{{ project.password }}".
+You can access it here: {{ SITE_URL }}{{ url_for("list_bills") }}, the password is "{{ g.project.password }}".
Enjoy,
Some weird guys