testappproj/templates/run.html
changeset 0 0b061d58aea3
equal deleted inserted replaced
-1:000000000000 0:0b061d58aea3
       
     1 {%extends "base.html"%}
       
     2 {%block body%}
       
     3   {{ results }}
       
     4   
       
     5 {%endblock%}
       
     6 
       
     7 {% block scripts %}
       
     8 <script type="text/javascript" src="http://www.google.com/jsapi"></script>
       
     9 <script type="text/javascript">
       
    10 google.load("jquery", "1.3.1");
       
    11 google.setOnLoadCallback(function() {
       
    12   $('table.run_result tbody tr td:last-child').each( function(){
       
    13       if  ($(this).text() == 'fail'){
       
    14           $(this).parent().addClass('failure')
       
    15       }
       
    16       else if  ($(this).text() == 'pass'){
       
    17           $(this).parent().addClass('success')
       
    18       }
       
    19   });
       
    20 });
       
    21 </script>
       
    22 {% endblock %}