From 3b055ad0ad3232a25408632a020d5e3c284c245b Mon Sep 17 00:00:00 2001 From: prathamesh Date: Thu, 25 Feb 2016 00:04:01 +0530 Subject: Question Statistics for a quiz per attempt. Shows the number of appearance of a question versus number of times the question was answered correctly --- yaksh/templates/yaksh/statistics_question.html | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/statistics_question.html b/yaksh/templates/yaksh/statistics_question.html index dc4786f..a63844f 100644 --- a/yaksh/templates/yaksh/statistics_question.html +++ b/yaksh/templates/yaksh/statistics_question.html @@ -6,14 +6,25 @@ {% endblock %} {% block subtitle %} -Statistics for {{quiz_name}} +Statistics for {{quiz.description}} {% endblock %} {% block manage %} -

Total number of participants: {{ total }}

- - - {% for question, attempts in question_stats.items %} - +
+
+{% for attempt in attempts %} +

Attempt {{ attempt }}

{% endfor %} -
QuestionTypeAnswered
{{ question.summary }}{{ question.type }}{{ attempts }} ({% widthratio attempts total 100 %}%)
+ +
+{% if question_stats %} +

Total number of participants: {{ total }}

+ + + {% for question, value in question_stats.items %} + + {% endfor %} +
QuestionTypeTotalAnswered
{{ question.summary }}{{ question.type }}{{value.1}}{{ value.0 }} ({% widthratio value.0 value.1 100 %}%)
+ {% endif %} +
+ {% endblock %} -- cgit