From 8747c671d87418be83c8c6b9849e2962cdbb0715 Mon Sep 17 00:00:00 2001 From: adityacp Date: Sat, 24 Oct 2020 16:42:10 +0530 Subject: Improve lesson statistics --- yaksh/templates/base.html | 7 +- yaksh/templates/manage.html | 7 ++ yaksh/templates/user.html | 8 +- yaksh/templates/yaksh/show_lesson_statistics.html | 51 +++++++++---- yaksh/templates/yaksh/show_video.html | 93 ++++++++++++----------- 5 files changed, 100 insertions(+), 66 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/base.html b/yaksh/templates/base.html index 2cc607c..a108f8c 100644 --- a/yaksh/templates/base.html +++ b/yaksh/templates/base.html @@ -54,14 +54,9 @@ - + {% block script %} {% endblock %} diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html index 53d5c72..047f784 100644 --- a/yaksh/templates/manage.html +++ b/yaksh/templates/manage.html @@ -65,6 +65,13 @@ + {% endblock %} {% block content %} diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html index 4e3974b..7211d5c 100644 --- a/yaksh/templates/user.html +++ b/yaksh/templates/user.html @@ -43,7 +43,13 @@ {% endblock %} - + {% block content %} {% block main %} diff --git a/yaksh/templates/yaksh/show_lesson_statistics.html b/yaksh/templates/yaksh/show_lesson_statistics.html index 2bcdd2d..31261f3 100644 --- a/yaksh/templates/yaksh/show_lesson_statistics.html +++ b/yaksh/templates/yaksh/show_lesson_statistics.html @@ -102,6 +102,19 @@ {% endif %} {{tc.options}} + {% if per_tc_ans %} + {% get_tc_percent tc.id per_tc_ans as percent %} +
Sr No. | Student Name | Latest Answer | -Status | +Latest Submission | |
---|---|---|---|---|---|
{{forloop.counter}} | +{{ forloop.counter0|add:objects.start_index }} | {{data.student__first_name}} {{data.student__last_name}} | {{data.student__email}} | {% get_answers data.toc_id data.student_id as user_answer %}{{ user_answer.0 }} | -- {% if user_answer.1 %} - - Correct - - {% else %} - - Incorrect - - {% endif %} - |
- - {{ toc_name }} - - | -- {{content.get_content_display}} - | -- {{content.time}} - | - - -
+ + {{ toc_name }} + + | ++ {{content.get_content_display}} + | ++ {{content.time}} + | + + +