X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3517c7fa3ec165a2650799a8d821d21116789c3b..1f39bd871ce30406dc771a6faffba68db635d2ed:/project/templates/registration/head_login.html?ds=sidebyside
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 %}