summaryrefslogtreecommitdiff
path: root/yaksh/templates/user.html
diff options
context:
space:
mode:
authoradityacp2017-10-05 11:53:49 +0530
committeradityacp2017-10-05 11:55:01 +0530
commit019a428295a52a7d5f1862ba5d0bda10dcea55a1 (patch)
treeb00ccdfe0981b97c78349038f88667d3e1fe51ca /yaksh/templates/user.html
parente79193180be5508c191a3401b018ff93c77791e5 (diff)
downloadonline_test-019a428295a52a7d5f1862ba5d0bda10dcea55a1.tar.gz
online_test-019a428295a52a7d5f1862ba5d0bda10dcea55a1.tar.bz2
online_test-019a428295a52a7d5f1862ba5d0bda10dcea55a1.zip
Show logged in user info in all templates
Diffstat (limited to 'yaksh/templates/user.html')
-rw-r--r--yaksh/templates/user.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html
index b068fae..83aea13 100644
--- a/yaksh/templates/user.html
+++ b/yaksh/templates/user.html
@@ -40,3 +40,8 @@
</div>
</div>
{% endblock %}
+{% if user %}
+ {% block info %}
+ <h5>{{user.get_full_name|title}}({{user.profile.roll_number}}) Logged in as {{user.username}}</h5>
+ {% endblock %}
+{% endif %}