Simpler deployment.
[redakcja.git] / redakcja / templates / registration / head_login.html
diff --git a/redakcja/templates/registration/head_login.html b/redakcja/templates/registration/head_login.html
new file mode 100644 (file)
index 0000000..f051213
--- /dev/null
@@ -0,0 +1,11 @@
+{% load i18n %}
+
+{% if user.is_authenticated %}
+<span class="user_name">{{ user.username }}</span> |
+<a href='{% url logout %}'>{% trans "Log Out" %}</a>
+{% else %}
+{% url login as login_url %}
+{% ifnotequal login_url request.path %}
+    <a href='{{ login_url }}'>{% trans "Log In" %}</a>
+{% endifnotequal %}
+{% endif %}