diff options
author | ankitjavalkar | 2016-11-16 20:32:21 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-11-16 20:32:21 +0530 |
commit | cb9a541a4653b2ed13db3a6171b50de575b0f05d (patch) | |
tree | 9fcab71c37e49ac1dfe61ba35fb97b50a32aaa25 /yaksh/templates | |
parent | 0b151541d9414572965b597815f98c4b057430e1 (diff) | |
download | online_test-cb9a541a4653b2ed13db3a6171b50de575b0f05d.tar.gz online_test-cb9a541a4653b2ed13db3a6171b50de575b0f05d.tar.bz2 online_test-cb9a541a4653b2ed13db3a6171b50de575b0f05d.zip |
Fix Output display of Code Question
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/grade_user.html | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/question.html | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/grade_user.html b/yaksh/templates/yaksh/grade_user.html index ced3ca2..38f31ca 100644 --- a/yaksh/templates/yaksh/grade_user.html +++ b/yaksh/templates/yaksh/grade_user.html @@ -157,7 +157,7 @@ Status : <b style="color: green;"> Passed </b><br/> <h5>Student answer: </h5> {% for answer in answers %} {% if not answer.skipped %} - {% if "Correct answer" in answer.error %} + {% if answer.correct %} <div class="panel panel-success"> {% else %} <div class="panel panel-danger"> diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index a8de448..18b6388 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -163,9 +163,11 @@ function call_skip(url) <div class="panel-footer"> {% if question.type == "code" %} {% if error_message %} - <p> Output Message</p> + <p><h4> Output Message </h4></p> <div class="alert alert-danger" role="alert"> + <textarea class="output" id="output" rows=10 cols=155> {{ error_message }} + </textarea> </div> {% endif %} {% endif %} |