show username in menu when logged in
This commit is contained in:
parent
9102796e6e
commit
990b8947fd
|
@ -57,7 +57,7 @@
|
|||
{% endif %}
|
||||
<li><a href="{% url 'contact' %}">Contact</a></li>
|
||||
{% if user.is_authenticated %}
|
||||
<li><a href="{% url 'profiles:detail' %}">Profile</a></li>
|
||||
<li><a href="{% url 'profiles:detail' %}"><i class="glyphicon glyphicon-user"></i> {{ user.username }}</a></li>
|
||||
<li><a href="{% url 'account_logout' %}">Logout</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'account_login' %}">Login</a></li>
|
||||
|
|
Loading…
Reference in a new issue