diff options
author | maheshgudi | 2017-11-13 16:47:04 +0530 |
---|---|---|
committer | maheshgudi | 2017-11-14 18:57:45 +0530 |
commit | a6fd44d9dd9c1e76929e715754bb4a215795b6b8 (patch) | |
tree | 2ba827351ac86827578e637474c92374acdcdca8 /yaksh/templates | |
parent | 7240d257261d2fb61627b9d70da07e6ae2fe34d8 (diff) | |
download | online_test-a6fd44d9dd9c1e76929e715754bb4a215795b6b8.tar.gz online_test-a6fd44d9dd9c1e76929e715754bb4a215795b6b8.tar.bz2 online_test-a6fd44d9dd9c1e76929e715754bb4a215795b6b8.zip |
Fix regrader for new code server
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/grade_user.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/yaksh/templates/yaksh/grade_user.html b/yaksh/templates/yaksh/grade_user.html index f52e6be..1fef026 100644 --- a/yaksh/templates/yaksh/grade_user.html +++ b/yaksh/templates/yaksh/grade_user.html @@ -8,7 +8,6 @@ {% block content %} {% block script %} -<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script> <script src="{{ URL_ROOT }}/static/yaksh/js/jquery.tablesorter.min.js"></script> <script type="text/javascript"> $(document).ready(function() @@ -107,10 +106,10 @@ End time: {{ paper.end_time }} <br/> {%if paper.percent%} Percentage obtained: {{paper.percent}}% <br/> {% endif %} -{% if paper.passed == 0 %} -Status : <b style="color: red;"> Failed </b><br/> -{% else %} +{% if paper.passed %} Status : <b style="color: green;"> Passed </b><br/> +{% else %} +Status : <b style="color: red;"> Failed </b><br/> {% endif %} </p> {% if paper.answers.count %} |