diff --git a/src/lib/Hydra/Controller/Job.pm b/src/lib/Hydra/Controller/Job.pm index 455035a8..1b4619f2 100644 --- a/src/lib/Hydra/Controller/Job.pm +++ b/src/lib/Hydra/Controller/Job.pm @@ -29,7 +29,7 @@ sub overview : Chained('job') PathPart('') Args(0) { , '+as' => ["releasename", "buildstatus"], order_by => 'system' })]; $c->stash->{lastBuilds} = [$c->stash->{job}->builds->search({ finished => 1 }, { join => 'resultInfo', '+select' => ["resultInfo.releasename", "resultInfo.buildstatus"] - , '+as' => ["releasename", "buildstatus"], order_by => 'timestamp DESC', rows => 5 })]; + , '+as' => ["releasename", "buildstatus"], order_by => 'timestamp DESC', rows => 10 })]; $c->stash->{runningBuilds} = [$c->stash->{job}->builds->search({busy => 1}, { join => ['schedulingInfo', 'project'] , order_by => ["priority DESC", "timestamp"] , '+select' => ['project.enabled', 'schedulingInfo.priority', 'schedulingInfo.disabled', 'schedulingInfo.busy'] diff --git a/src/root/job.tt b/src/root/job.tt index 0d0933e4..c74f5804 100644 --- a/src/root/job.tt +++ b/src/root/job.tt @@ -17,19 +17,18 @@
- [% IF currentBuilds.size != 0 %] -

Finished builds

- [% INCLUDE renderBuildList builds=currentBuilds showStatusChange=0 %] - [% ELSE %] - [% IF lastBuilds.size != 0 %] -

Last 5 builds

- [% INCLUDE renderBuildList builds=lastBuilds showStatusChange=0 %] - [% END %] + [% IF runningBuilds.size == 0 %] +

Latest builds (latest evaluation)

+ [% INCLUDE renderBuildList builds=currentBuilds showStatusChange=0 %] [% END %] [% IF runningBuilds.size != 0 %]

Running builds

[% INCLUDE renderBuildList builds=runningBuilds showSchedulingInfo=1 hideResultInfo=1 %] [% END %] + [% IF lastBuilds.size != 0 %] +

Last 10 builds

+ [% INCLUDE renderBuildList builds=lastBuilds showStatusChange=0 %] + [% END %]

This job provides the following Nix channels: