Author: earle Date: 2008-01-31 12:20:27 +0000 (Thu, 31 Jan 2008) New Revision: 1152
Modified: status/templates/ status/templates/tests.tt Log: Colouring for report cells.
Property changes on: status/templates ___________________________________________________________________ Name: svn:ignore + test-results-*.txt
Modified: status/templates/tests.tt =================================================================== --- status/templates/tests.tt 2008-01-31 01:53:58 UTC (rev 1151) +++ status/templates/tests.tt 2008-01-31 12:20:27 UTC (rev 1152) @@ -11,7 +11,7 @@ }
.pass { - background: #3c3; + background: #3f3; } </style> </head> @@ -30,7 +30,15 @@ <tr> <td>[% test_name.replace('_', ' ') %]</td> [% FOREACH datum IN test_results.keys.sort %] - <td>[% test_results.$datum %]%</td> + <td +[%- IF (test_results.$datum == 100) -%] +class="pass" +[%- ELSIF (test_results.$datum > 80) -%] +class="fail_minor" +[%- ELSE -%] +class="fail_serious"> +[%- END -%] +>[% test_results.$datum %]%</td> [% END %] </tr> [%- END %]
openguides-commits@lists.openguides.org