--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/testappproj/templates/run.html~ Mon May 17 22:33:59 2010 +0530
@@ -0,0 +1,22 @@
+{%extends "base.html"%}
+{%block body%}
+ {{ result }}
+
+{%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 %}