summaryrefslogtreecommitdiff
path: root/yaksh/templates/manage.html
diff options
context:
space:
mode:
authorankitjavalkar2018-09-28 15:18:13 +0530
committerankitjavalkar2018-09-28 15:18:13 +0530
commitcb907831ace6a4ecf37c7a6149c6ebef21ffd772 (patch)
tree9f21a51eda96ae06bae486c554e77e989d305ddc /yaksh/templates/manage.html
parentf5effc2db11d6e1e9064bc0dde1628b3018239f6 (diff)
downloadonline_test-cb907831ace6a4ecf37c7a6149c6ebef21ffd772.tar.gz
online_test-cb907831ace6a4ecf37c7a6149c6ebef21ffd772.tar.bz2
online_test-cb907831ace6a4ecf37c7a6149c6ebef21ffd772.zip
Add Switch To buttons in main menu and minor UI changes
Diffstat (limited to 'yaksh/templates/manage.html')
-rw-r--r--yaksh/templates/manage.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html
index a7eb187..3ba2817 100644
--- a/yaksh/templates/manage.html
+++ b/yaksh/templates/manage.html
@@ -25,7 +25,13 @@
<a class="dropdown-item" href="{{ URL_ROOT }}/exam/reset/changepassword/"><i class="fa fa-key"></i> Change Password</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{URL_ROOT}}/exam/logout/"><i class="fa fa-sign-out"></i> Logout</a>
- </div>
+ <div class="dropdown-divider"></div>
+ {% if user.profile.is_moderator %}
+ <a class="dropdown-item" href="{{URL_ROOT}}/exam/toggle_moderator/"><i class="fa fa-exchange"></i>
+ Switch To Student
+ </a>
+ {% endif %}
+ </div>
</ul>
</div>
</div>