summaryrefslogtreecommitdiff
path: root/scipy/templates/upload-document.html
diff options
context:
space:
mode:
authorJayaram Pai2013-10-15 13:59:06 +0530
committerJayaram Pai2013-10-15 13:59:06 +0530
commitf422686e69b5f98ff7a3db12787aa7bed6849023 (patch)
treeb434203bd46af5392abc79589e8dbd1b5f6f8236 /scipy/templates/upload-document.html
parent0241bbd60f416342c8d7a5ff41bc06dedb1148ff (diff)
downloadSciPy2013-f422686e69b5f98ff7a3db12787aa7bed6849023.tar.gz
SciPy2013-f422686e69b5f98ff7a3db12787aa7bed6849023.tar.bz2
SciPy2013-f422686e69b5f98ff7a3db12787aa7bed6849023.zip
displaying logged in user.
logout link and redirect.
Diffstat (limited to 'scipy/templates/upload-document.html')
-rw-r--r--scipy/templates/upload-document.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/scipy/templates/upload-document.html b/scipy/templates/upload-document.html
index 00ff130..8f8f1e8 100644
--- a/scipy/templates/upload-document.html
+++ b/scipy/templates/upload-document.html
@@ -1,4 +1,12 @@
{% extends 'page.html' %}
+
+{% block userblock %}
+{% if current_user != "anonymous" %}
+<li><a href="#"> {{ current_user }}</a></li>
+<li><a href="/2013/accounts/logout">Logout</a></li>
+{% endif %}
+{% endblock %}
+
{% block content %}
<div class="large-6 large-centered columns">
<form class="form-signin" action="/2013/accounts/upload-document/" method="POST" enctype="multipart/form-data"> {% csrf_token %}