Podstawowe logowanie do edytora.
[redakcja.git] / project / templates / registration / head_login.html
diff --git a/project/templates/registration/head_login.html b/project/templates/registration/head_login.html
new file mode 100644 (file)
index 0000000..d6df7fe
--- /dev/null
@@ -0,0 +1,6 @@
+{% if user.is_authenticated %}
+<span class="user_name">{{ user.get_full_name }}</span> | 
+<a href='{% url django.contrib.auth.views.logout %}?next_page={{request.get_full_path}}'>Wyloguj</a>
+{% else %}
+<a href='{% url django.contrib.auth.views.login %}?next_page={{request.get_full_path}}'>Logowanie</a>
+{% endif %}