X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3a211aa9d249e67425735f492407edbc2fd58a2f..f02d58db2f0a5f06c38d669c4b4c4fff95e55395:/project/templates/registration/head_login.html?ds=inline
diff --git a/project/templates/registration/head_login.html b/project/templates/registration/head_login.html
index d6df7fe7..ded03e97 100644
--- a/project/templates/registration/head_login.html
+++ b/project/templates/registration/head_login.html
@@ -1,6 +1,10 @@
{% if user.is_authenticated %}
-{{ user.get_full_name }} |
-Wyloguj
+{{ user.username }} |
+Wyloguj
{% else %}
-Logowanie
+{% url django.contrib.auth.views.login as login_url %}
+{% ifnotequal login_url request.path %}
+ Logowanie
+{% endifnotequal %}
+
{% endif %}