aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorJocelyn Delalande <jocelyn@crapouillou.net>2017-01-30 23:23:03 +0100
committerJocelyn Delalande <jocelyn@crapouillou.net>2017-01-30 23:23:03 +0100
commit87d2dea9c8d97bc9373dd16e921606635ef6795b (patch)
tree67759275a3a22276c497b197c69336c609603353 /budget/templates
parenta79685798d5518134470e351fdae0b1794bbca67 (diff)
downloadihatemoney-mirror-87d2dea9c8d97bc9373dd16e921606635ef6795b.zip
ihatemoney-mirror-87d2dea9c8d97bc9373dd16e921606635ef6795b.tar.gz
ihatemoney-mirror-87d2dea9c8d97bc9373dd16e921606635ef6795b.tar.bz2
Factor navbar between list_bills and settle_bill
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/layout.html4
-rw-r--r--budget/templates/settle_bills.html5
2 files changed, 2 insertions, 7 deletions
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index 543bcb3..ccf958f 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -42,8 +42,8 @@
{% 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>
+ <li class="nav-item{% if current_view == 'list_bills' %} active{% endif %}"><a class="nav-link" href="{{ url_for(".list_bills") }}">{{ _("Bills") }}</a></li>
+ <li class="nav-item{% if current_view == 'settle_bill' %} active{% endif %}"><a class="nav-link" href="{{ url_for(".settle_bill") }}">{{ _("Settle") }}</a></li>
{% endblock %}
</ul>
{% endif %}
diff --git a/budget/templates/settle_bills.html b/budget/templates/settle_bills.html
index 16c60b3..8a9f733 100644
--- a/budget/templates/settle_bills.html
+++ b/budget/templates/settle_bills.html
@@ -1,10 +1,5 @@
{% extends "layout.html" %}
-{% block navbar %}
-<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 %}
<div id="sidebar" class="sidebar">