aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/layout.html
diff options
context:
space:
mode:
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>