testappproj/templates/run.html
author amit@thunder
Mon, 17 May 2010 22:33:59 +0530
changeset 0 0b061d58aea3
permissions -rw-r--r--
First commit to Fossee of testapp has the basic Pykata framework on django with some specific changes to Problems model and some views to suit an exam like system

{%extends "base.html"%}
{%block body%}
  {{ results }}
  
{%endblock%}

{% block scripts %}
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3.1");
google.setOnLoadCallback(function() {
  $('table.run_result tbody tr td:last-child').each( function(){
      if  ($(this).text() == 'fail'){
          $(this).parent().addClass('failure')
      }
      else if  ($(this).text() == 'pass'){
          $(this).parent().addClass('success')
      }
  });
});
</script>
{% endblock %}