Job page: show queued as well as running builds

This commit is contained in:
Eelco Dolstra
2013-02-22 12:51:00 +01:00
parent 1643d90d92
commit 6dbb948f1f
3 changed files with 7 additions and 11 deletions

View File

@ -29,9 +29,9 @@ sub overview : Chained('job') PathPart('') Args(0) {
[ $c->stash->{job}->builds->search({ finished => 1 },
{ order_by => 'timestamp DESC', rows => 10, columns => [@buildListColumns] }) ];
$c->stash->{runningBuilds} = [
$c->stash->{queuedBuilds} = [
$c->stash->{job}->builds->search(
{ busy => 1 },
{ finished => 0 },
{ join => ['project']
, order_by => ["priority DESC", "timestamp"]
, '+select' => ['project.enabled']