summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorankitjavalkar2016-11-18 16:24:45 +0530
committerankitjavalkar2016-12-21 18:12:52 +0530
commit66ee0552653ee139491d5166d20f8bce7a5c835a (patch)
treed98e58ba8955a38c79a99c09bc215f9b4f7cdb04 /yaksh/templates
parent15de9ce5fe9d1e456bfae60090807a77c6afef0a (diff)
downloadonline_test-66ee0552653ee139491d5166d20f8bce7a5c835a.tar.gz
online_test-66ee0552653ee139491d5166d20f8bce7a5c835a.tar.bz2
online_test-66ee0552653ee139491d5166d20f8bce7a5c835a.zip
Render output errors properly in grade user
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/user_data.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html
index 378e7fd..856433d 100644
--- a/yaksh/templates/yaksh/user_data.html
+++ b/yaksh/templates/yaksh/user_data.html
@@ -99,7 +99,13 @@ User IP address: {{ paper.user_ip }}
{% else %}
<div class="panel panel-danger">
{% endif %}
- <div class="panel-heading">Autocheck: {{ answer.error }}</div>
+ <div class="panel-heading">
+ {% for error in error %}
+ <div class="panel-body">
+ <pre><code>{{ error }}</code></pre>
+ </div>
+ {% endfor %}
+ </div>
<div class="panel-body"><pre><code>{{ answer.answer.strip }}</code></pre></div>
</div>
{% endif %}