diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-09-09 21:21:37 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-09-09 21:21:37 +0200 |
| commit | ef353d643c274d19e7816e9cfa436e38f1d1edea (patch) | |
| tree | ce88603d11ed7b10015677db1ce97ad3cf23ec4e /budget/templates/layout.html | |
| parent | 45dc6edacbc9cb771fd038cdc719fd953c1a6771 (diff) | |
| download | ihatemoney-mirror-ef353d643c274d19e7816e9cfa436e38f1d1edea.zip ihatemoney-mirror-ef353d643c274d19e7816e9cfa436e38f1d1edea.tar.gz ihatemoney-mirror-ef353d643c274d19e7816e9cfa436e38f1d1edea.tar.bz2 | |
Refactor the application to use blueprints.
This allows to isolate some behavior in the context of the web application so
the API and the web application can behave in different ways.
Diffstat (limited to 'budget/templates/layout.html')
| -rw-r--r-- | budget/templates/layout.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/budget/templates/layout.html b/budget/templates/layout.html index cb7ab10..afdda85 100644 --- a/budget/templates/layout.html +++ b/budget/templates/layout.html @@ -4,7 +4,7 @@ <head> <title>Account manager</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> - <link rel=stylesheet type=text/css href="{{ url_for('static', filename='main.css') }}"> + <link rel=stylesheet type=text/css href="{{ url_for("static", filename='main.css') }}"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ @@ -42,7 +42,7 @@ <body> <div class="topbar"> - <h3><a class="logo" href="{% if g.project %}{{ url_for("list_bills") }}{% endif %}">#! money?</a></h3> + <h3><a class="logo" href="{% if g.project %}{{ url_for(".list_bills") }}{% endif %}">#! money?</a></h3> {% if g.project %} <ul> <li class="active"><a href="">Bills</a></li> @@ -56,12 +56,12 @@ <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> + <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><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> + <li><a href="{{ url_for(".exit") }}">Logout</a></li> </ul> </li> </ul> |
