summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authormaheshgudi2016-09-08 08:17:25 +0530
committermaheshgudi2016-09-08 08:17:25 +0530
commitbd0ed17050159e4ca3ba4493bdc520f26d85120c (patch)
treec392f27426ef05c4259ea91acaca0d3a04b5fea0 /yaksh/templates
parent18288cbb0dadca66c71ec5abb854d726ca6e27d8 (diff)
downloadonline_test-bd0ed17050159e4ca3ba4493bdc520f26d85120c.tar.gz
online_test-bd0ed17050159e4ca3ba4493bdc520f26d85120c.tar.bz2
online_test-bd0ed17050159e4ca3ba4493bdc520f26d85120c.zip
changed template to add end_time and status details in answerpaper
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/view_answerpaper.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/view_answerpaper.html b/yaksh/templates/yaksh/view_answerpaper.html
index a213d7b..9227561 100644
--- a/yaksh/templates/yaksh/view_answerpaper.html
+++ b/yaksh/templates/yaksh/view_answerpaper.html
@@ -23,6 +23,13 @@
Questions correctly answered: {{ paper.get_answered_str }} <br/>
Marks obtained: {{ paper.marks_obtained }} <br/>
Start time: {{ paper.start_time }} <br/>
+ End time : {{ paper.end_time }} <br/>
+ Percentage obtained: {{ paper.percent }}% <br/>
+ {% if paper.passed == 0 %}
+ Status : <b style="color: red;"> Failed </b><br/>
+ {% else %}
+ Status : <b style="color: green;"> Passed </b><br/>
+ {% endif %}
</p>
{% if paper.answers.count %}
@@ -40,7 +47,7 @@
{% if question.type == "mcq" or question.type == "mcc" %}
<h5> <u>Choices:</u></h5>
{% for testcase in question.get_test_cases %}
- <br/><strong>{{ forloop.counter }}. &nbsp{{ testcase.options }}</strong>
+ <br/><strong>{{ forloop.counter }}. {{ testcase.options }}</strong>
{% endfor %}
{%endif%}