Add jobset/job menus on buid log pages

This commit is contained in:
Eelco Dolstra 2014-02-26 11:49:28 +01:00
parent 66b8c1a9e0
commit 8dcef7702f
2 changed files with 6 additions and 7 deletions

View file

@ -31,6 +31,8 @@ sub buildChain :Chained('/') :PathPart('build') :CaptureArgs(1) {
$c->stash->{mappers} = [$c->model('DB::UriRevMapper')->all];
$c->stash->{project} = $c->stash->{build}->project;
$c->stash->{jobset} = $c->stash->{build}->jobset;
$c->stash->{job} = $c->stash->{build}->job;
}
@ -74,8 +76,8 @@ sub build_GET {
if ($build->finished) {
$c->stash->{prevBuilds} = [$c->model('DB::Builds')->search(
{ project => $c->stash->{project}->name
, jobset => $c->stash->{build}->jobset->name
, job => $c->stash->{build}->job->name
, jobset => $c->stash->{jobset}->name
, job => $c->stash->{job}->name
, 'me.system' => $build->system
, finished => 1
, buildstatus => 0
@ -405,8 +407,8 @@ sub history_graphs : Chained('buildChain') PathPart('history-graphs') {
if ($build->finished) {
$c->stash->{prevBuilds} = [$c->model('DB::Builds')->search(
{ project => $c->stash->{project}->name
, jobset => $c->stash->{build}->jobset->name
, job => $c->stash->{build}->job->name
, jobset => $c->stash->{jobset}->name
, job => $c->stash->{job}->name
, 'me.system' => $build->system
, finished => 1
, buildstatus => 0

View file

@ -4,9 +4,6 @@
[% USE HTML %]
[% USE Date %]
[% project = build.project %]
[% jobset = build.jobset %]
[% job = build.job %]
[% isAggregate = constituents.size > 0 %]
[% BLOCK renderOutputs %]