fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
local changes from server
[redakcja.git]
/
redakcja
/
templates
/
registration
/
head_login.html
diff --git
a/redakcja/templates/registration/head_login.html
b/redakcja/templates/registration/head_login.html
index
64bd3e7
..
2a8fd3b
100644
(file)
--- a/
redakcja/templates/registration/head_login.html
+++ b/
redakcja/templates/registration/head_login.html
@@
-2,9
+2,14
@@
{% if user.is_authenticated %}
<span class="user_name">{{ user.username }}</span> |
{% if user.is_authenticated %}
<span class="user_name">{{ user.username }}</span> |
-<a href='{% url logout %}{% if logout_to %}?next={{ logout_to }}{% endif %}'>{% trans "Log Out" %}</a>
+
+{% if user.is_staff %}
+ <a href="{% url 'admin:index' %}">{% trans "Admin" %}</a> |
+{% endif %}
+
+<a href='{% url "logout" %}{% if logout_to %}?next={{ logout_to }}{% endif %}'>{% trans "Log Out" %}</a>
{% else %}
{% else %}
-{% url
login
as login_url %}
+{% url
"login"
as login_url %}
{% ifnotequal login_url request.path %}
<a href='{{ login_url }}'>{% trans "Log In" %}</a>
{% endifnotequal %}
{% ifnotequal login_url request.path %}
<a href='{{ login_url }}'>{% trans "Log In" %}</a>
{% endifnotequal %}