aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/layout.html
diff options
context:
space:
mode:
author0livd <github@destras.fr>2017-09-04 15:44:20 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2017-09-04 15:44:20 +0200
commit7a918c93498c2eb4f85b3b0198c03f3c2edf51fe (patch)
tree885fe498c3f27acb8fc73f5d37765c7e42669762 /ihatemoney/templates/layout.html
parentee1ecbf3e747daa711744a05027a667a302cc7e9 (diff)
downloadihatemoney-mirror-7a918c93498c2eb4f85b3b0198c03f3c2edf51fe.zip
ihatemoney-mirror-7a918c93498c2eb4f85b3b0198c03f3c2edf51fe.tar.gz
ihatemoney-mirror-7a918c93498c2eb4f85b3b0198c03f3c2edf51fe.tar.bz2
Enhance the dashboard. (#262)
* Update to a more flexible admin authentication * Admin can now access any project * Add delete and edit options in the dashboard * Add a link to the dashboard in the nav bar This is a rework of the changes proposed by @Olivd, so they can apply on top of the latest master without trouble. All credit goes to him for the code.
Diffstat (limited to 'ihatemoney/templates/layout.html')
-rw-r--r--ihatemoney/templates/layout.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html
index 36f01f8..8510911 100644
--- a/ihatemoney/templates/layout.html
+++ b/ihatemoney/templates/layout.html
@@ -64,6 +64,9 @@
{% endif %}
<li class="nav-item{% if g.lang == "fr" %} active{% endif %}"><a class="nav-link" href="{{ url_for(".change_lang", lang="fr") }}">fr</a></li>
<li class="nav-item{% if g.lang == "en" %} active{% endif %}"><a class="nav-link" href="{{ url_for(".change_lang", lang="en") }}">en</a></li>
+ {% if g.show_admin_dashboard_link %}
+ <li class="nav-item{% if request.url_rule.endpoint == "main.dashboard" %} active{% endif %}"><a class="nav-link" href="{{ url_for(".dashboard") }}">{{ _("Dashboard") }}</a></li>
+ {% endif %}
</ul>
</div>
</nav>