From ba7b94a8526ab137422f6b4c4fc9a4045bae8524 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Mar 2009 18:50:42 +0000 Subject: [PATCH] --- src/lib/Hydra/Controller/Build.pm | 4 ++-- src/lib/Hydra/Controller/Root.pm | 2 +- src/root/release.tt | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index bcef22a8..9f420f38 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -125,8 +125,8 @@ sub download : Chained('build') PathPart { } -sub contents : Chained('build') PathPart { - my ($self, $c, $productnr, @path) = @_; +sub contents : Chained('build') PathPart Args(1) { + my ($self, $c, $productnr) = @_; my $product = $c->stash->{build}->buildproducts->find({productnr => $productnr}); notFound($c, "Build doesn't have a product $productnr.") if !defined $product; diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index b2be88eb..71e63eeb 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -224,7 +224,7 @@ sub release :Local { my $primaryBuild = $project->builds->find($releaseId, { join => 'resultInfo', '+select' => ["resultInfo.releasename"], '+as' => ["releasename"] }); error($c, "Release $releaseId doesn't exist.") if !defined $primaryBuild; - + $c->stash->{release} = getRelease($primaryBuild, $jobs); } diff --git a/src/root/release.tt b/src/root/release.tt index 38c49d8d..266fde90 100644 --- a/src/root/release.tt +++ b/src/root/release.tt @@ -6,6 +6,8 @@

Release [% releaseName %]

+

Released on [% INCLUDE renderDateTime timestamp = release.timestamp %].

+ [% IF release.status == 1 %]

This is a failed release. One of its jobs has failed. See below for details.

[% ELSIF release.status == 2 %]