From cb907831ace6a4ecf37c7a6149c6ebef21ffd772 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Fri, 28 Sep 2018 15:18:13 +0530 Subject: Add Switch To buttons in main menu and minor UI changes --- yaksh/templates/manage.html | 8 +++++++- yaksh/templates/user.html | 6 ++++++ yaksh/templates/yaksh/quizzes_user.html | 9 --------- 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 @@ Change Password Logout - + + {% if user.profile.is_moderator %} + + Switch To Student + + {% endif %} + 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 @@ Change Password Logout + + {% if user.profile.is_moderator %} + + Switch To Moderator + + {% endif %} 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 %} -
- - Switch To Moderator - -
- {% endif %} {% if 'Enrolled Courses' not in title%}
-- cgit