From b121bc18fd60e3f3f42f0093bf3a74b6d66cd006 Mon Sep 17 00:00:00 2001 From: mahesh Date: Wed, 27 Apr 2016 00:16:50 +0530 Subject: changed from username to user_id --- yaksh/templates/yaksh/user_data.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html index 22be3ed..04544f9 100644 --- a/yaksh/templates/yaksh/user_data.html +++ b/yaksh/templates/yaksh/user_data.html @@ -22,11 +22,11 @@ Last login: {{ data.user.last_login }} {% if data.papers %} {% if data.questionpaperid %} -
+
{% else %}
-
+
Grade/correct paper
{% endif %}
@@ -41,7 +41,7 @@ Last login: {{ data.user.last_login }}
Attempt Number: {{ paper.attempt_number }} No answer papers so far.
-Name: {{ data.user.get_full_name.title }}
+{% if course_details %}
+ Name:{{ data.user.get_full_name.title }}
{% if data.profile %}
-(roll number: {{ data.profile.roll_number }}) Roll number: {{ data.profile.roll_number }}
+ Position: {{ data.profile.position }}
+ Department: {{ data.profile.department }}
+ Institute: {{ data.profile.institute }}
{% endif %}
-
-Attempt Number: {{ paper.attempt_number }}
Questions correctly answered: {{ paper.get_answered_str }}
Total attempts at questions: {{ paper.answers.count }}
-Marks obtained: {{ paper.get_total_marks }}
+Marks obtained: {{ paper.marks_obtained }}
Start time: {{ paper.start_time }}
User IP address: {{ paper.user_ip }}
-
- Grade/correct paper
-
+
+{% with data.papers.0 as paper %}
+Grade/correct paper
+{% endwith %}
+
+
{% if data.papers.count > 1 %}
Monitor quiz
{% else %}
--
cgit
From 71c800cfff1fca003f1bdc5e0e53e857cbd7a6d6 Mon Sep 17 00:00:00 2001
From: mahesh
Date: Wed, 27 Apr 2016 00:17:31 +0530
Subject: changed from username to user_id
---
yaksh/templates/yaksh/monitor.html | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/yaksh/monitor.html b/yaksh/templates/yaksh/monitor.html
index b81c9f2..80ad06c 100644
--- a/yaksh/templates/yaksh/monitor.html
+++ b/yaksh/templates/yaksh/monitor.html
@@ -9,13 +9,13 @@
{% endblock %}
{% block subtitle %}
{% if not quizzes and not quiz %}
- Quiz Results
+ Quiz Results
{% endif %}
{% if quizzes %}
- Available Quizzes
+ Available Quizzes
{% endif %}
{% if quiz %}
- {{ quiz.description }} Results
+ {{ quiz.description }} Results
{% endif %}
{% endblock %}
{% block manage %}
@@ -54,7 +54,7 @@
{% for paper in latest_attempts %}
- {{ paper.user.get_full_name.title }}
+ {{ paper.user.get_full_name.title }}
{{ paper.user.username }}
{{ paper.user.profile.roll_number }}
{{ paper.user.profile.institute }}
@@ -69,4 +69,4 @@
+
+{% endif %}
+
+
+
+
+ {% for course in course_details %}
+ Courses
+ Quizzes
+
+
+ {% endfor %}
+
+
+ {% if course.get_quizzes %}
+ {{course.name}}
+ {% for quiz in course.get_quizzes %}
+
+ {% else %}
+ No quiz
+ {% endif %}
+
+
-Position: {{ data.profile.position }}
-Department: {{ data.profile.department }}
-Institute: {{ data.profile.institute }}
+
+
- Previous attempts
-{% endif %}
{{ paper.total_marks }}
- Quiz: {{ paper.question_paper.quiz.description }}
+ Quiz: {{ paper.question_paper.quiz.description }}
-Questions correctly answered: {{ paper.get_answered_str }}
+Attempt Number: {{paper.attempt_number}}
+
+
+
Questions correctly answered: {{ paper.get_answered_str }}
Total attempts at questions: {{ paper.answers.count }}
-Marks obtained: {{ paper.get_total_marks }}
+Marks obtained: {{ paper.marks_obtained }}
Start time: {{ paper.start_time }}
+{%if paper.percent%}
+Percentage obtained: {{paper.percent}}%
+{% endif %}
+{% if paper.passed == 0 %}
+Status : Failed
+{% else %}
+Status : Passed
+{% endif %}
{% endfor %}
+
Answers