- {% if question.type == "mcq" or question.type == "mcc" or question.type == "integer" %}
+ {% if question.type == "mcq" or "mcc" or "integer" or "float" or "string" %}
{% elif question.type == "upload" %}
diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html
index b667676..832e343 100644
--- a/yaksh/templates/yaksh/user_data.html
+++ b/yaksh/templates/yaksh/user_data.html
@@ -76,10 +76,10 @@ User IP address: {{ paper.user_ip }}
{% endif %}
{% endfor %}
- {% elif question.type == "integer" %}
+ {{% elif question.type == "integer" or "string" or "float" %}
Correct Answer:
{% for testcase in question.get_test_cases %}
-
{{ testcase.correct }}
+
{{ testcase.correct|safe }}
{% endfor %}
diff --git a/yaksh/templates/yaksh/view_answerpaper.html b/yaksh/templates/yaksh/view_answerpaper.html
index 76369db..633be9e 100644
--- a/yaksh/templates/yaksh/view_answerpaper.html
+++ b/yaksh/templates/yaksh/view_answerpaper.html
@@ -52,10 +52,10 @@
{% endif %}
{% endfor %}
- {% elif question.type == "integer" %}
+ {% elif question.type == "integer" or "string" or "float" %}
Correct Answer:
{% for testcase in question.get_test_cases %}
-
{{ testcase.correct }}
+
{{ testcase.correct|safe }}
{% endfor %}
{% else %}
--
cgit
From 1c5e1dfef3fb4af8bc070fe190cec552ef3732b0 Mon Sep 17 00:00:00 2001
From: maheshgudi
Date: Thu, 9 Mar 2017 01:18:51 +0530
Subject: pep8 changes in models and user_data
---
yaksh/templates/yaksh/user_data.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html
index 832e343..0bfd00e 100644
--- a/yaksh/templates/yaksh/user_data.html
+++ b/yaksh/templates/yaksh/user_data.html
@@ -76,7 +76,7 @@ User IP address: {{ paper.user_ip }}
{% endif %}
{% endfor %}
- {{% elif question.type == "integer" or "string" or "float" %}
+ {% elif question.type == "integer" or "string" or "float" %}
Correct Answer:
{% for testcase in question.get_test_cases %}
{{ testcase.correct|safe }}
--
cgit
From ac292ed1099b49f9d0e8a7ed3699bacdd8031de3 Mon Sep 17 00:00:00 2001
From: maheshgudi
Date: Sat, 11 Mar 2017 02:17:41 +0530
Subject: made minor template changes and fixed test_models
---
yaksh/templates/exam.html | 8 ++------
yaksh/templates/yaksh/question.html | 4 ++--
2 files changed, 4 insertions(+), 8 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html
index 4818717..02ff70a 100644
--- a/yaksh/templates/exam.html
+++ b/yaksh/templates/exam.html
@@ -86,13 +86,9 @@
{% endfor %}
- {% if error != "Incorrect answer" %}
- Testcase No. {{ forloop.counter }}
-