From 28a3abf96d010db8253b53933d6ab36c4dd412d9 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Fri, 19 Aug 2011 23:44:54 +0200 Subject: 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. --- budget/templates/invitation_mail | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'budget/templates/invitation_mail') 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 -- cgit v1.1