diff options
author | adityacp | 2017-10-05 11:53:49 +0530 |
---|---|---|
committer | adityacp | 2017-10-05 11:55:01 +0530 |
commit | 019a428295a52a7d5f1862ba5d0bda10dcea55a1 (patch) | |
tree | b00ccdfe0981b97c78349038f88667d3e1fe51ca /yaksh/templates/user.html | |
parent | e79193180be5508c191a3401b018ff93c77791e5 (diff) | |
download | online_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.html | 5 |
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 %} |