From 6d8e1aa67381cd3b07e4ac89818af2a96ca05668 Mon Sep 17 00:00:00 2001
From: mahesh
Date: Tue, 16 May 2017 18:28:49 +0530
Subject: added wordwrap for error output table
---
yaksh/templates/exam.html | 19 ++++++++++---------
yaksh/templates/yaksh/question.html | 2 +-
2 files changed, 11 insertions(+), 10 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html
index b5b6c46..f349b2f 100644
--- a/yaksh/templates/exam.html
+++ b/yaksh/templates/exam.html
@@ -86,32 +86,33 @@
{{error|safe}}
{% else %}
{% if error.given_input %}
-
+
For given Input value(s): |
{{error.given_input}} |
+
{% endif %}
-
+
- Line No. |
- Expected Output |
- User output |
- Status |
+ Line No. |
+ Expected Output |
+ User output |
+ Status |
{% for expected,user in error.expected_output|zip:error.user_output %}
{{forloop.counter}} |
{{expected|default:""}} |
{{user|default:""}} |
{% if forloop.counter0 in error.error_no or not expected or not user %}
- |
+ |
{% else %}
- |
+ |
{% endif %}
{% endfor %}
@@ -121,7 +122,7 @@
Error: |
{{error.error}} |
-
+
{% endif %}
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index e1cdcf8..ee33523 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -239,7 +239,7 @@ function call_skip(url)
{% if question.type == "mcq" or "mcc" or "integer" or "float" or "string" %}
-
+
{% elif question.type == "upload" %}
--
cgit