aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorA.Avenel <avenel.alexandre@gmail.com>2013-04-07 23:01:32 +0200
committerA.Avenel <avenel.alexandre@gmail.com>2013-04-07 23:01:32 +0200
commita0e94f3c116879301a2bef32fac30c232c18e386 (patch)
treea5317b077374c8e3dbd91436a6aaa21ecc72b2f1 /budget/templates
parent0d7c82b12267ed3a9ece1ca72a71cea077e9cc0f (diff)
downloadihatemoney-mirror-a0e94f3c116879301a2bef32fac30c232c18e386.zip
ihatemoney-mirror-a0e94f3c116879301a2bef32fac30c232c18e386.tar.gz
ihatemoney-mirror-a0e94f3c116879301a2bef32fac30c232c18e386.tar.bz2
bugfix : "Settle" link was not active on navbar.
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/layout.html2
-rw-r--r--budget/templates/settle_bills.html7
2 files changed, 4 insertions, 5 deletions
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index 27f5b5b..543bcb3 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -41,8 +41,10 @@
<h1><a class="brand" href="{{ url_for(".home") }}">#! money?</a></h1>
{% if g.project %}
<ul class="nav primary-nav">
+ {% block navbar %}
<li class="active"><a href="{{ url_for(".list_bills") }}">{{ _("Bills") }}</a></li>
<li><a href="{{ url_for(".settle_bill") }}">{{ _("Settle") }}</a></li>
+ {% endblock %}
</ul>
{% endif %}
<ul class="nav pull-right secondary-nav">
diff --git a/budget/templates/settle_bills.html b/budget/templates/settle_bills.html
index e2041f5..29d9b26 100644
--- a/budget/templates/settle_bills.html
+++ b/budget/templates/settle_bills.html
@@ -1,11 +1,8 @@
{% extends "layout.html" %}
-{% block js %}
- $('#cancel-form').click(function(){location.href={{ url_for(".list_bills") }};});
-{% endblock %}
{% block navbar %}
- <li><a href="{{ url_for(".list_bills") }}">{{ _("Bills") }}</a></li>
- <li class="active"><a href="{{ url_for(".settle_bills") }}">{{ _("Settle") }}</a></li>
+<li><a href="{{ url_for(".list_bills") }}">{{ _("Bills") }}</a></li>
+<li class="active"><a href="{{ url_for(".settle_bill") }}">{{ _("Settle") }}</a></li>
{% endblock %}
{% block sidebar %}