summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/templates/manage.html8
-rw-r--r--yaksh/templates/user.html6
-rw-r--r--yaksh/templates/yaksh/quizzes_user.html9
3 files changed, 13 insertions, 10 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>
diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html
index 134ba85..91b48ed 100644
--- a/yaksh/templates/user.html
+++ b/yaksh/templates/user.html
@@ -22,6 +22,12 @@
<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>
+ {% endif %}
</div>
</li>
</ul>
diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html
index 5194f11..95fa08a 100644
--- a/yaksh/templates/yaksh/quizzes_user.html
+++ b/yaksh/templates/yaksh/quizzes_user.html
@@ -14,13 +14,6 @@
{% endif %}
{% block navtab %}
- {% if user.profile.is_moderator %}
- <div class="row">
- <a href="{{URL_ROOT}}/exam/toggle_moderator/" class="btn btn-primary pull-right" style="margin-top: 20px; margin-bottom: 20px;">
- Switch To Moderator
- </a>
- </div>
- {% endif %}
{% if 'Enrolled Courses' not in title%}
<div class="container">
<div class="nav nav-tabs yakshnavtab">
@@ -163,8 +156,6 @@
<table class="table table-borderless card table-responsive-sm">
<tr><td class="yakshgreen">STARTS ON</td> <td>{{course.start_enroll_time}}</td></tr>
<tr><td class="yakshgreen">ENDS ON</td> <td>{{course.end_enroll_time}}</td>
- <tr><td class="yakshgreen">LEVEL</td> <td></td></tr>
- <tr><td class="yakshgreen">PERKS</td> <td> Verified Certificate </td></tr>
</table>
</div>
</div>