diff options
Diffstat (limited to 'budget/templates/layout.html')
| -rw-r--r-- | budget/templates/layout.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/budget/templates/layout.html b/budget/templates/layout.html index 988ee58..d1b63a9 100644 --- a/budget/templates/layout.html +++ b/budget/templates/layout.html @@ -50,10 +50,17 @@ </ul> <ul class="nav secondary-nav"> <li class="menu"> - <a href="#" class="menu">Options</a> + <a href="#" class="menu"><strong>{{ g.project.name }}</strong> options</a> <ul class="menu-dropdown" style="display: none; "> <li><a href="">Project settings</a></li> <li class="divider"></li> + {% for id, name in session['projects'] %} + {% if id != g.project.id %} + <li><a href="{{ url_for("list_bills", project_id=id) }}">switch to {{ name }}</a></li> + {% endif %} + {% endfor %} + <li><a href="{{ url_for("create_project") }}">Start a new project</a></li> + <li class="divider"></li> <li><a href="{{ url_for("exit") }}">Logout</a></li> </ul> </li> |
