X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/78644811ca0c6042212788dc67add42bc41fb74c..cf85c8a0c77196eb2c66a722444ac69903c1b12a:/platforma/templates/registration/head_login.html diff --git a/platforma/templates/registration/head_login.html b/platforma/templates/registration/head_login.html index 5eb353d0..ca2c4e1f 100644 --- a/platforma/templates/registration/head_login.html +++ b/platforma/templates/registration/head_login.html @@ -1,10 +1,11 @@ +{% load i18n %} + {% if user.is_authenticated %} <span class="user_name">{{ user.username }}</span> | -<a href='{% url logout %}?next={{request.get_full_path}}'>Wyloguj</a> +<a href='{% url logout %}?next={{request.get_full_path|urlencode}}'>{% trans "Log Out" %}</a> {% else %} {% url login as login_url %} {% ifnotequal login_url request.path %} - <a href='{{ login_url }}?next={{request.get_full_path}}'>Logowanie</a> + <a href='{{ login_url }}?next={{request.get_full_path|urlencode}}'>{% trans "Log In" %}</a> {% endifnotequal %} - {% endif %}