[% IF NOT results.size %]
The job queue is empty.
[% ELSE %] [% FOREACH row IN results %] [% IF row.status.search('^queued-') %] [% ELSE %] [% END %] [% END %]
Entered Action Status Device Port Param User Started Finished Action
[% row.entered_stamp | html_entity %] [% FOREACH word IN row.action.split('_') %] [% word.ucfirst | html_entity %]  [% END %] Running on "[% row.status.remove('^queued-') | html_entity %]"[% row.status.ucfirst | html_entity %] [% IF row.action == 'discover' AND row.status == 'error' %] [% row.device | html_entity %] [% ELSE %] [% row.device | html_entity %] [% END %] [% row.port | html_entity %] [% row.subaction | html_entity %] [% row.username | html_entity %] [% row.started_stamp | html_entity %] [% row.finished_stamp | html_entity %]
[% END %]