From fe8a3768640a9e8872a66fd2ce7a827b92e265b3 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Fri, 8 Jan 2010 11:50:55 +0000 Subject: [PATCH] show current builds on job page --- src/lib/Hydra/Controller/Job.pm | 2 ++ src/root/job.tt | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/lib/Hydra/Controller/Job.pm b/src/lib/Hydra/Controller/Job.pm index bc88ab31..8dd657a0 100644 --- a/src/lib/Hydra/Controller/Job.pm +++ b/src/lib/Hydra/Controller/Job.pm @@ -25,6 +25,8 @@ sub overview : Chained('job') PathPart('') Args(0) { 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})]; } diff --git a/src/root/job.tt b/src/root/job.tt index 7530c921..a34179d7 100644 --- a/src/root/job.tt +++ b/src/root/job.tt @@ -9,6 +9,10 @@ title = jobset.name %]:[% job.name %] +

Status

+ +[% INCLUDE renderBuildList builds=currentBuilds showStatusChange=0 %] +

Channels

This job provides the following Nix channels: