From 745426ecc20bba58fd3721a960057ad8d41e3b99 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Wed, 3 Jul 2019 17:31:38 +0530 Subject: Minor changes - Remove commented code. - Add active class to the tab selected on sidebar. --- yaksh/models.py | 10 ---------- yaksh/templates/yaksh/quiz.html | 4 ++-- yaksh/templates/yaksh/unit.html | 4 ++-- yaksh/views.py | 1 - 4 files changed, 4 insertions(+), 15 deletions(-) (limited to 'yaksh') diff --git a/yaksh/models.py b/yaksh/models.py index 24cb996..2ae6f45 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -575,16 +575,6 @@ class Quiz(models.Model): sub_folder_name = os.sep.join(( course_name, module_name, quiz_name )) - # lesson_files = self.get_files() - # if self.video_file: - # video_file = os.sep.join((sub_folder_name, os.path.basename( - # self.video_file.name))) - # zip_file.writestr(video_file, self.video_file.read()) - # for lesson_file in lesson_files: - # if os.path.exists(lesson_file.file.path): - # filename = os.sep.join((sub_folder_name, os.path.basename( - # lesson_file.file.name))) - # zip_file.writestr(filename, lesson_file.file.read()) unit_file_path = os.sep.join(( path, "templates", "yaksh", "quiz.html" )) diff --git a/yaksh/templates/yaksh/quiz.html b/yaksh/templates/yaksh/quiz.html index fca0cad..3240244 100644 --- a/yaksh/templates/yaksh/quiz.html +++ b/yaksh/templates/yaksh/quiz.html @@ -38,13 +38,13 @@ {% for unit in module.get_learning_units %} {% if unit.type == 'lesson' %}