summaryrefslogtreecommitdiff
path: root/yaksh/templates/user.html
diff options
context:
space:
mode:
authorankitjavalkar2018-10-01 18:41:45 +0530
committerankitjavalkar2018-10-09 16:46:46 +0530
commit28edb315ce60a1ad95b7a608301a67ee8ba3e9d6 (patch)
tree66081612a5d754d8beeb36b6caf857b819adf333 /yaksh/templates/user.html
parentbdd20668da9631396866e8a1942bcb8b2e623396 (diff)
downloadonline_test-28edb315ce60a1ad95b7a608301a67ee8ba3e9d6.tar.gz
online_test-28edb315ce60a1ad95b7a608301a67ee8ba3e9d6.tar.bz2
online_test-28edb315ce60a1ad95b7a608301a67ee8ba3e9d6.zip
Minor UI changes and selenium test fixes
Diffstat (limited to 'yaksh/templates/user.html')
-rw-r--r--yaksh/templates/user.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html
index 91b48ed..db65195 100644
--- a/yaksh/templates/user.html
+++ b/yaksh/templates/user.html
@@ -15,19 +15,20 @@
<ul class="nav nav-pills ml-auto">
<li class="nav-item"><a class="nav-link" href="{{ URL_ROOT }}/exam/"><i class="fa fa-home" style="size: 18px"></i></a></li>
<li class="nav-item dropdown">
- <a class="dropdown-toggle nav-link" data-toggle="dropdown" href="#"> {{user.get_full_name|title}}</a>
+ <a class="dropdown-toggle nav-link" id="user_dropdown" data-toggle="dropdown" href="#"> {{user.get_full_name|title}}</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ URL_ROOT }}/exam/viewprofile/"><i class="fa fa-user"></i> My Profile</a>
<div class="dropdown-divider"></div>
- <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 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 Moderator
</a>
+ <div class="dropdown-divider"></div>
{% endif %}
+ <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 id="user_logout" class="dropdown-item" href="{{URL_ROOT}}/exam/logout/"><i class="fa fa-sign-out"></i> Logout</a>
+
</div>
</li>
</ul>