{% extends "base.html" %} {% load custom_filters %} {% block css%} {% endblock %} {% block nav %} {% endblock %} {% block content %}
{% block main %} {% endblock %}
{% if question.type == 'code' or question.type == 'upload' %} {% if error_message %}
{% for error in error_message %}
Testcase No. {{ forloop.counter }}
{% if not error.expected_output %}
 {{error|safe}} 
{% else %} {% if error.given_input %}
For given Input value(s): {{error.given_input}}
{% endif %} {% for expected,user in error.expected_output|zip:error.user_output %} {% if forloop.counter0 in error.error_line_numbers or not expected or not user %} {% else %} {% endif %} {% endfor %}
Line No.
Expected Output
User output
Status
{{forloop.counter}} {{expected|default:""}} {{user|default:""}}
Error: {{error.error_msg}}
{% endif %}
{% endfor %}
{% endif %} {% endif %}
{% endblock %}