diff options
author | mahesh | 2016-04-27 00:16:50 +0530 |
---|---|---|
committer | mahesh | 2016-05-04 11:21:46 +0530 |
commit | b121bc18fd60e3f3f42f0093bf3a74b6d66cd006 (patch) | |
tree | 5a6be8cfb304030242e3496364e158de6bffaa28 /yaksh/templates | |
parent | 3833fa423daaf55e30c89d2cd3b02d5bf5f080f5 (diff) | |
download | online_test-b121bc18fd60e3f3f42f0093bf3a74b6d66cd006.tar.gz online_test-b121bc18fd60e3f3f42f0093bf3a74b6d66cd006.tar.bz2 online_test-b121bc18fd60e3f3f42f0093bf3a74b6d66cd006.zip |
changed from username to user_id
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/user_data.html | 15 |
1 files changed, 9 insertions, 6 deletions
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 %} -<p><a href="{{URL_ROOT}}/exam/manage/gradeuser/{{ data.user.username }}/{{ data.questionpaperid }}"> +<p><a href="{{URL_ROOT}}/exam/manage/gradeuser/{{data.papers.0.question_paper.quiz.id}}/{{ data.user.id }}"> Grade/correct paper</a> </p> {% else %} -<p><a href="{{URL_ROOT}}/exam/manage/gradeuser/{{ data.user.username }}"> +<p><a href="{{URL_ROOT}}/exam/manage/gradeuser/{{data.papers.0.question_paper.quiz.id}}/{{ data.user.id }}"> Grade/correct paper</a> {% endif %} @@ -41,7 +41,7 @@ Last login: {{ data.user.last_login }} Attempt Number: {{ paper.attempt_number }}<br/> Questions correctly answered: {{ paper.get_answered_str }} <br/> Total attempts at questions: {{ paper.answers.count }} <br/> -Marks obtained: {{ paper.get_total_marks }} <br/> +Marks obtained: {{ paper.marks_obtained }} <br/> Start time: {{ paper.start_time }} <br/> User IP address: {{ paper.user_ip }} </p> @@ -75,9 +75,12 @@ User IP address: {{ paper.user_ip }} {% endif %} {# if data.papers #} <br /> <hr /> -<a href="{{URL_ROOT}}/exam/manage/gradeuser/{{ data.user.username }}/"> - Grade/correct paper</a> -<br/> + +{% with data.papers.0 as paper %} +<a href="{{URL_ROOT}}/exam/manage/gradeuser/{{paper.question_paper.quiz.id}}/{{ data.user.id }}/">Grade/correct paper</a> +{% endwith %} +<br /> + {% if data.papers.count > 1 %} <a href="{{URL_ROOT}}/exam/manage/monitor/">Monitor quiz</a> {% else %} |