<!-- BEGIN [% component.name %] -->
    <div class="aftericon" id="toggle[% sectionName %]">
      <span class="title">[% section %]</span>
      [% IF active_tests.size %]
          <strong>[[% active_tests.size %]]</strong>:
          </div>[% # result-active-tests div only wraps for genomics css: %]
          <div class="result-active-tests">
          [% 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;
          %]
          <span class="[% class %]">[% # DON'T WRAP THIS: %]
            [% entry %] ([% display %])</span>[% UNLESS loop.last; ','; END %]
        [% END %]
      [% END %]
    </div>
<!-- END [% component.name %] -->
