From 51c6734d53e9fdb79500782992a74287f9bae259 Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 20 Feb 2018 11:47:38 +0530 Subject: Change in complete.html and courses.html - Remove message from complete.html - Add/Change link for clone course --- yaksh/templates/yaksh/complete.html | 3 --- yaksh/templates/yaksh/courses.html | 21 ++++++++++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/complete.html b/yaksh/templates/yaksh/complete.html index e4317fe..19013ca 100644 --- a/yaksh/templates/yaksh/complete.html +++ b/yaksh/templates/yaksh/complete.html @@ -33,9 +33,6 @@ width="80" alt="YAKSH">{% endblock %}
Available Lessons and quizzes: (Add Lessons and Quizzes)
+Available Modules:
- - {{module.name|title}} - | -- - - - - View Lessons/Quizzes/Exercises - | -- {% get_module_status user module course as module_status %} - Status: - {% if module_status == "completed" %} - - {{module_status|title}} - - {% elif module_status == "inprogress" %} - - {{module_status|title}} - - {% else %} - - {{module_status|title}} - - {% endif %} - | -
Lesson/Quiz/Exercise | -Status | -Type | -View AnswerPaper | -
---|
- {% if unit.type == "quiz" %} - {{unit.quiz.description}} - {% else %} - {{unit.lesson.name}} - {% endif %} + + {{module.name|title}} | - {% get_unit_status course module unit user as status %} - {% if status == "completed" %} - {{status|title}} + - {% elif status == "inprogress" %} - {{status|title}} + - {% else %} - {{status|title}} - - {% endif %} - | -
- {% if unit.type == "quiz" %}
- {% if unit.quiz.is_exercise %}
- Exercise
- {% else %}
- Quiz
- {% endif %}
- {% else %}
- Lesson
- {% endif %}
+
+ View Lessons/Quizzes/Exercises
+
+
|
- {% if unit.type == "quiz" %} - {% if unit.quiz.view_answerpaper %} - Can View + {% get_module_status user module course as module_status %} + Status: + {% if module_status == "completed" %} + + {{module_status|title}} + + {% elif module_status == "inprogress" %} + + {{module_status|title}} + {% else %} - - - Cannot view now + + {{module_status|title}} + {% endif %} - {% else %} - ------ - {% endif %} | -
No Question Paper -- cgit From 88fbad3f08dfcf8d139f8bc572860469c64e3104 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 6 Mar 2018 20:47:42 +0530 Subject: Multiple fixes: - Add views test cases in test_views.py - Add minutes unit to preview_questionpaper template - Add error handling in views when random user accesses questionpaper --- yaksh/templates/yaksh/preview_questionpaper.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/preview_questionpaper.html b/yaksh/templates/yaksh/preview_questionpaper.html index 411e4a6..123218f 100644 --- a/yaksh/templates/yaksh/preview_questionpaper.html +++ b/yaksh/templates/yaksh/preview_questionpaper.html @@ -6,7 +6,7 @@