X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fqueue.html;h=e5f7aed6adebad966431128094f349789817eb6d;hb=16ac0d9bacf239ecbf24b4b7d2231981bd9efe89;hp=675fccd0b213e5d7ab7740605232edce9e6401b3;hpb=61f3f998fe85b1d099100fbe52bc238deebf80f0;p=freeside.git diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index 675fccd0b..e5f7aed6a 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -1,20 +1,5 @@ -% -% -%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', @@ -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; + +