show current builds on job page

This commit is contained in:
Rob Vermaas 2010-01-08 11:50:55 +00:00
parent 67f468e0a3
commit fe8a376864
2 changed files with 6 additions and 0 deletions

View file

@ -25,6 +25,8 @@ sub overview : Chained('job') PathPart('') Args(0) {
getBuildStats($c, scalar $c->stash->{job}->builds); getBuildStats($c, scalar $c->stash->{job}->builds);
$c->stash->{currentBuilds} = [$c->stash->{job}->builds->search({iscurrent => 1}, { join => 'resultInfo', '+select' => ["resultInfo.releasename", "resultInfo.buildstatus"]
, '+as' => ["releasename", "buildstatus"], order_by => 'system' })];
$c->stash->{systems} = [$c->stash->{job}->builds->search({iscurrent => 1}, {select => ["system"], distinct => 1})]; $c->stash->{systems} = [$c->stash->{job}->builds->search({iscurrent => 1}, {select => ["system"], distinct => 1})];
} }

View file

@ -9,6 +9,10 @@
title = jobset.name %]:[% job.name %]</tt></h1> title = jobset.name %]:[% job.name %]</tt></h1>
<h2>Status</h2>
[% INCLUDE renderBuildList builds=currentBuilds showStatusChange=0 %]
<h2>Channels</h2> <h2>Channels</h2>
<p>This job provides the following Nix channels:</p> <p>This job provides the following Nix channels:</p>