X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/275dc6c6f5c92630c9a1fca0f1830ba543cd18b7..ddfd0025304ea7087fdd2a4e06893a6f998b9f19:/project/templates/registration/head_login.html
diff --git a/project/templates/registration/head_login.html b/project/templates/registration/head_login.html
index d6df7fe7..5eb353d0 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 login as login_url %}
+{% ifnotequal login_url request.path %}
+ Logowanie
+{% endifnotequal %}
+
{% endif %}