{%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 %}