[% section %] [% IF active_tests.size %] [[% active_tests.size %]]: [% 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'); 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 %]