diff options
author | ankitjavalkar | 2016-11-18 16:10:22 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-12-21 18:12:52 +0530 |
commit | 15de9ce5fe9d1e456bfae60090807a77c6afef0a (patch) | |
tree | 8f7d8c96da853ed8629b50305da099bf51f75095 /yaksh/templates | |
parent | 77e8a6c1cde9190daf9075d71caf6017dc1380e7 (diff) | |
download | online_test-15de9ce5fe9d1e456bfae60090807a77c6afef0a.tar.gz online_test-15de9ce5fe9d1e456bfae60090807a77c6afef0a.tar.bz2 online_test-15de9ce5fe9d1e456bfae60090807a77c6afef0a.zip |
Fix output rendering in the question
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/question.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 74ac786..c3babaa 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -209,11 +209,19 @@ function call_skip(url) </div> {% if question.type == "code" %} <div class="panel-footer"> + {% if error_message %} - <p> Output Message</p> - <div class="alert alert-danger" role="alert"> - <textarea style="width:100%" class="error" readonly="yes">{{ error_message }}</textarea> - </div> + {% for error in error_message %} + {% if error == "Correct answer" %} + <div class="panel panel-success"> + {% else %} + <div class="panel panel-danger"> + {% endif %} + <div class="panel-heading">Testcase No. {{ forloop.counter }}</div> + <div class="panel-body"><pre><code>{{ error }}</code></pre></div> + </div> + {% endfor %} + {% endif %} </div> {% endif %} |