1 {% if user.is_authenticated %}
2 <span class="user_name">{{ user.username }}</span> |
3 <a href='{% url logout %}?next={{request.get_full_path}}'>Wyloguj</a>
5 {% url login as login_url %}
6 {% ifnotequal login_url request.path %}
7 <a href='{{ login_url }}?next={{request.get_full_path}}'>Logowanie</a>