summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authormaheshgudi2017-11-06 16:34:37 +0530
committermaheshgudi2017-11-07 14:50:09 +0530
commit70a35ac2a001bd9638d9db5ed645d00f94ae4666 (patch)
treed404d9f9413b25fcc224fe3dea15eee1bc8ca88d /yaksh/templates
parent72b3d672735f624064431cbb0751d3cc3b08b6ba (diff)
downloadonline_test-70a35ac2a001bd9638d9db5ed645d00f94ae4666.tar.gz
online_test-70a35ac2a001bd9638d9db5ed645d00f94ae4666.tar.bz2
online_test-70a35ac2a001bd9638d9db5ed645d00f94ae4666.zip
Change module compare_stdio to error_messages
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/exam.html15
1 files changed, 5 insertions, 10 deletions
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html
index 8b573d4..1d7af9c 100644
--- a/yaksh/templates/exam.html
+++ b/yaksh/templates/exam.html
@@ -80,6 +80,7 @@
{% block main %}
{% endblock %}
</div>
+ <br/>
{% if question.type == 'code' or question.type == 'upload' %}
{% if error_message %}
<div class="row" id="error_panel">
@@ -92,28 +93,22 @@
<pre><code> {{error|safe}} </code></pre>
{% elif error.type == 'assertion' %}
{% if error.test_case %}
- <table class="table table-bordered">
- <col width="30%">
- <tr class = "active">
- <td> We tried calling your function with the following test case:</td>
- <td><code><strong>{{error.test_case}}</strong></code></td>
- </tr>
- </table>
+ <strong> We tried you code with the following test case:</strong><br/></br>
+ <pre><code><strong style="color:#d9534f">{{error.test_case}}</strong></code></pre>
{% endif %}
<p> <b>The following error took place: </b></p>
<table class="table table-bordered" width="100%">
<col width="30%">
<tr class = "active">
<td><b>Exception Name: </b></td>
- <td><mark style="background-color:#ff9999;">{{error.exception}}</mark>
- </td>
+ <td><span style="color: #d9534f">{{error.exception}}</span></td>
</tr>
<tr>
<td><b>Exception Message: </b></td><td>{{error.message}}</td>
</tr>
<tr>
{% if error.traceback %}
- <td><b>Full exception: </b></td>
+ <td><b>Full Traceback: </b></td>
<td><pre>{{error.traceback}}</pre></td>
{% endif %}
</tr>