diff options
Diffstat (limited to 'pyc/templates/index.html')
-rw-r--r-- | pyc/templates/index.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyc/templates/index.html b/pyc/templates/index.html index 6707fca..ba860f2 100644 --- a/pyc/templates/index.html +++ b/pyc/templates/index.html @@ -6,4 +6,12 @@ Labs: <li><a href="/lab/{{ lab.id }}/">{{ lab.name }}</a></li> {% endfor %} </ol> + +<p> +{% if authenticated %} + <a href="{% url django.contrib.auth.views.logout %}">Logout</a> +{% else %} + <a href="{% url django.contrib.auth.views.login %}">Login</a> +{% endif %} +</p> {% endblock %} |