Zmiana nazwy project -> platforma.
[redakcja.git] / platforma / templates / registration / head_login.html
diff --git a/platforma/templates/registration/head_login.html b/platforma/templates/registration/head_login.html
new file mode 100644 (file)
index 0000000..5eb353d
--- /dev/null
@@ -0,0 +1,10 @@
+{% if user.is_authenticated %}
+<span class="user_name">{{ user.username }}</span> | 
+<a href='{% url logout %}?next={{request.get_full_path}}'>Wyloguj</a>
+{% else %}
+{% url login as login_url %}
+{% ifnotequal login_url request.path %}
+    <a href='{{ login_url }}?next={{request.get_full_path}}'>Logowanie</a>
+{% endifnotequal %}
+
+{% endif %}