X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fqueue.html;h=1c124706c2e60d91cc1c967968614cf28ae3e0a2;hb=8dba5cb96454bf8ec81333ebac381180731396f1;hp=675fccd0b213e5d7ab7740605232edce9e6401b3;hpb=61f3f998fe85b1d099100fbe52bc238deebf80f0;p=freeside.git diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index 675fccd0b..1c124706c 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -1,25 +1,10 @@ -% -% -%my $hashref = {}; -% -%my $conf = new FS::Conf; -%my $dangerous = $conf->exists('queue_dangerous_controls'); -% -%my $noactions = 0; -% -%my $count_query = 'SELECT COUNT(*) FROM queue'; # + $hashref -% -%my $areboxes = 0; -% -% <% include( 'elements/search.html', 'title' => 'Job Queue', - 'menubar' => [ 'Main menu' => $p, ], 'name' => 'jobs', 'html_form' => qq!
!, 'query' => { 'table' => 'queue', 'hashref' => $hashref, - 'extra_sql' => 'ORDER BY jobnum', + 'order_by' => 'ORDER BY jobnum', }, 'count_query' => $count_query, 'header' => [ '#', @@ -65,10 +50,14 @@ || ( ! $noactions && $status =~ /^failed/ || $status =~ /^locked/ + || $status =~ /^done/ ); if ( $changable ) { + $status .= qq! (!; + $status .= + qq!  retry |! + unless $status =~ /^done/; $status .= - qq! ( retry |!. qq! remove )!; } $status; @@ -134,3 +123,20 @@ ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Job queue'); + +my $hashref = {}; + +my $conf = new FS::Conf; +my $dangerous = $conf->exists('queue_dangerous_controls'); + +my $noactions = 0; + +my $count_query = 'SELECT COUNT(*) FROM queue'; # + $hashref + +my $areboxes = 0; + +