From d6a757f14d6b76c8124d52057cc981403d28d71a Mon Sep 17 00:00:00 2001 From: mahesh Date: Fri, 12 May 2017 18:25:53 +0530 Subject: changed stdio output --- yaksh/templates/exam.html | 53 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 5 deletions(-) (limited to 'yaksh/templates/exam.html') diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index a18a962..b5b6c46 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load custom_filters %} {% block css%} {% endblock %} @@ -77,13 +78,55 @@ {% if error_message %}
{{ error }}
{{error|safe}}
+ {% else %}
+ {% if error.given_input %}
+ For given Input value(s): | +{{error.given_input}} | +
{{forloop.counter}} | +{{expected|default:""}} | +{{user|default:""}} | + {% if forloop.counter0 in error.error_no or not expected or not user %} ++ {% else %} + | + {% endif %} + + {% endfor %} + |
Error: | +{{error.error}} | + +
{{error|safe}}
{% else %}
{% if error.given_input %}
- For given Input value(s): | {{error.given_input}} | +
{{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}} | - +