diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-07-31 00:53:12 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-07-31 00:53:12 +0200 |
| commit | 3417a5a7d48ade7744586a711127d2302f58109a (patch) | |
| tree | c9ab5bfc50596f582bd51fd414ff73bab1c66c4c /budget/templates | |
| parent | 2df6e11f05eff9bd855079097aa865f52689d7ca (diff) | |
| download | ihatemoney-mirror-3417a5a7d48ade7744586a711127d2302f58109a.zip ihatemoney-mirror-3417a5a7d48ade7744586a711127d2302f58109a.tar.gz ihatemoney-mirror-3417a5a7d48ade7744586a711127d2302f58109a.tar.bz2 | |
List the projects in session into the home page.
This allows easier access when people don't remembre the name / url of their projects.
Diffstat (limited to 'budget/templates')
| -rw-r--r-- | budget/templates/home.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/budget/templates/home.html b/budget/templates/home.html index 7a0cafc..ae36d4a 100644 --- a/budget/templates/home.html +++ b/budget/templates/home.html @@ -12,12 +12,14 @@ <p>{{ auth_form.password.label }}<br /> {{ auth_form.password }}</p> <p>{{ auth_form.submit }}</p> </form> - <h3>Recently visisted projects</h3> - <ul> - {% for project in session['projects'] %} - <li>{{ project }}</li> - {% endfor %} - </ul> + {% if 'projects' in session %} + <h3>Recently visisted projects</h3> + <ul> + {% for id, name in session['projects'] %} + <li><a href="{{ url_for("list_bills", project_id=id) }}">{{ name }}</a></li> + {% endfor %} + </ul> + {% endif %} </div> <form class="span-10 last" action="{{ url_for('create_project') }}" method="post" class="container span-24 add-bill"> |
