Add balance if user is logged in

This commit is contained in:
Nico Schottelius 2021-05-25 19:55:13 +02:00
parent 49f52fd41d
commit 745abc48ef

View file

@ -11,7 +11,8 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
{% if user.is_authenticated %}
<span class="navbar-text">Logged in as {{ user }}.</span>
<span class="navbar-text">Logged in as {{ user }}. Your balance:
{{ balance }} CHF. </span>
<li class="nav-item">
<a class="nav-link" href="{% url 'logout' %}">Logout</a>
</li>