[% section %]
[% IF active_tests.size %]
[[% active_tests.size %]]:
[% # result-active-tests div only wraps for genomics css: %]
[% FOREACH entry IN active_tests; # PROCESS dumper.tt dump = entry;
IF this_section.panel.item(entry);
test_type = 'panel';
ELSE;
test_type = 'test';
END; # PROCESS dumper.tt dump = test_type;
# PROCESS dumper.tt dump = this_section.item(test_type).item(entry);
test_status = this_section.item(test_type).item(entry).status;
IF test_status.match('^complete$'); # patched 17/2/16 for UCLH using 'complete' in status name
display = this_section.item(test_type).item(entry).user.username | upper;
class = 'normal';
ELSE;
display = test_status;
class = 'red';
END;
%]
[% # DON'T WRAP THIS: %]
[% entry %] ([% display %])[% UNLESS loop.last; ','; END %]
[% END %]
[% END %]