<%doc> Devices in downtime <%attr> title => 'Devices in Downtime' section => 'Reports' <%args> <%init> my $DEBUG = 0; if ( $DEBUG ){ print '%ARGS is

    ', Dumper(%ARGS), '

'; } my @devices = Device->get_within_downtime();
Devices within downtime
% if( @devices ){ <& ../generic/sortresults.mhtml, table => 'Device', object=>\@devices, view => "row", withdelete => 1, withedit => 1 &> % }else{ None % }