X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8132fc186eb0c5fd02c86828c3a4735754296d02..5913c54d19b8f6775633176032161d49f9b2f1aa:/src/redakcja/templates/registration/head_login.html
diff --git a/src/redakcja/templates/registration/head_login.html b/src/redakcja/templates/registration/head_login.html
new file mode 100644
index 00000000..2a8fd3bd
--- /dev/null
+++ b/src/redakcja/templates/registration/head_login.html
@@ -0,0 +1,16 @@
+{% load i18n %}
+
+{% if user.is_authenticated %}
+{{ user.username }} |
+
+{% if user.is_staff %}
+ {% trans "Admin" %} |
+{% endif %}
+
+{% trans "Log Out" %}
+{% else %}
+{% url "login" as login_url %}
+{% ifnotequal login_url request.path %}
+ {% trans "Log In" %}
+{% endifnotequal %}
+{% endif %}