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/static/yaksh/css/exam.css | 8 +++++++-
yaksh/templates/exam.html | 19 ++++++++++---------
yaksh/templates/yaksh/question.html | 2 +-
3 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/yaksh/static/yaksh/css/exam.css b/yaksh/static/yaksh/css/exam.css
index 88111dc..fff904e 100644
--- a/yaksh/static/yaksh/css/exam.css
+++ b/yaksh/static/yaksh/css/exam.css
@@ -1 +1,7 @@
-.table td { border: black solid 1px !important; }
\ No newline at end of file
+table td, table th { border: black solid 1px !important;
+ word-wrap: break-word !important;
+ white-space: pre-wrap !important;
+ }
+output{
+ table-layout: fixed
+}
\ No newline at end of file
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