[%- IF tests.size -%]
[%- FOREACH test IN tests -%]
[%- IF loop.count % 40 == 1 -%]
<table width="100%" summary="subtests" class="subtests">
<tr>
[%- END -%]
[%- IF test.skip %] [% SET css_class = 'skip' -%]
[%- ELSIF test.ok %] [% SET css_class = test.todo ? 'todo_ok' : 'ok' -%]
[%- ELSE %] [% SET css_class = test.todo ? 'todo' : 'fail' -%]
[%- END -%]
<td class="x [% css_class %] tooltip_trigger">
<div style="display:none; position:absolute;" class="tooltip">
[% IF test.died %]
<em>[% test.comment | html %]</em>
[% ELSE %]
<pre>[% test.comment | html %]</pre>
[% END %]
[% IF test.unknown %]<pre class="unknown">[% test.unknown %]</pre>[%- END -%]
</div>
</td>
[%- IF loop.last || ( loop.count % 40 == 0 && !loop.first ) -%]
</tr>
</table>
[%- END -%]
[%- END -%]
[%- ELSE -%]
<em>No tests run</em>
[%- END -%]