Add balance if user is logged in
This commit is contained in:
parent
49f52fd41d
commit
745abc48ef
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<ul class="navbar-nav mr-auto">
|
<ul class="navbar-nav mr-auto">
|
||||||
{% if user.is_authenticated %}
|
{% 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">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{% url 'logout' %}">Logout</a>
|
<a class="nav-link" href="{% url 'logout' %}">Logout</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue